diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 7e11b978c67..c43e8b987fe 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -10,6 +10,7 @@ module ts { getLine(): number; getColumn(): number; getIndent(): number; + isLineStart(): boolean; } var indentStrings: string[] = []; @@ -146,7 +147,8 @@ module ts { getTextPos: () => output.length, getLine: () => lineCount + 1, getColumn: () => lineStart ? indent * 4 + 1 : output.length - linePos + 1, - getText: () => output + getText: () => output, + isLineStart: () => lineStart }; } @@ -177,14 +179,24 @@ module ts { /** write emitted output to disk*/ var writeEmittedFiles = writeJavaScriptFile; + /** Emit leading comments of the declaration */ + var emitLeadingComments = compilerOptions.removeComments ? function (declaration: Declaration) { + } : emitLeadingDeclarationComments; + + /** Emit Trailing comments of the declaration */ + var emitTrailingComments = compilerOptions.removeComments ? function (declaration: Declaration) { + } : emitTrailingDeclarationComments; + + var writeComment = writeCommentRange; + /** Emit a node */ var emit = emitNode; /** Called just before starting emit of a node */ - var emitStart = function (node: Node) { } + var emitStart = function (node: Node) { }; /** Called once the emit of the node is done */ - var emitEnd = function (node: Node) { } + var emitEnd = function (node: Node) { }; /** Emit the text for the given token that comes after startPos * This by default writes the text provided with the given tokenKind @@ -428,6 +440,12 @@ module ts { sourceMapNameIndices.pop(); }; + function writeCommentRangeWithMap(comment: Comment) { + recordSourceMapSpan(comment.pos); + writeCommentRange(comment); + recordSourceMapSpan(comment.end); + } + function writeJavaScriptAndSourceMapFile(emitOutput: string, writeByteOrderMark: boolean) { // Write source map file encodeLastRecordedSourceMapSpan(); @@ -513,6 +531,7 @@ module ts { emitNewSourceFileStart = recordNewSourceFileStart; scopeEmitStart = recordScopeNameOfNode; scopeEmitEnd = recordScopeNameEnd; + writeComment = writeCommentRangeWithMap; } function writeJavaScriptFile(emitOutput: string, writeByteOrderMark: boolean) { @@ -1057,14 +1076,18 @@ module ts { } function emitVariableDeclaration(node: VariableDeclaration) { + emitLeadingComments(node); emitModuleMemberName(node); emitOptional(" = ", node.initializer); + emitTrailingComments(node); } function emitVariableStatement(node: VariableStatement) { + emitLeadingComments(node); if (!(node.flags & NodeFlags.Export)) write("var "); emitCommaList(node.declarations); write(";"); + emitTrailingComments(node); } function emitParameter(node: ParameterDeclaration) { @@ -1840,6 +1863,30 @@ module ts { } } + function writeCommentRange(comment: Comment) { + writer.writeLiteral(currentSourceFile.text.substring(comment.pos, comment.end)); + } + + function emitComments(comments: Comment[]) { + forEach(comments, comment => { + writeComment(comment); + if (comment.hasTrailingNewLine) { + writer.writeLine(); + } else { + writer.write(" "); + } + }); + } + + function emitLeadingDeclarationComments(node: Declaration) { + var leadingComments = getLeadingComments(currentSourceFile.text, node.pos); + emitComments(leadingComments); + } + + function emitTrailingDeclarationComments(node: Declaration) { + var trailingComments = getTrailingComments(currentSourceFile.text, node.end); + } + if (compilerOptions.sourceMap) { initializeEmitterWithSourceMaps(); } diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 2de92ed02cc..a53333b3c5f 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -359,9 +359,9 @@ module ts { // between the given position and the next line break are returned. The return value is an array containing a TextRange for each // comment. Single-line comment ranges include the the beginning '//' characters but not the ending line break. Multi-line comment // ranges include the beginning '/* and ending '*/' characters. The return value is undefined if no comments were found. - function getCommentRanges(text: string, pos: number, trailing: boolean): TextRange[] { - var result: TextRange[]; - var collecting = trailing; + function getCommentRanges(text: string, pos: number, trailing: boolean): Comment[] { + var result: Comment[]; + var collecting = trailing || pos === 0; while (true) { var ch = text.charCodeAt(pos); switch (ch) { @@ -373,6 +373,9 @@ module ts { return result; } collecting = true; + if (result && result.length) { + result[result.length - 1].hasTrailingNewLine = true; + } continue; case CharacterCodes.tab: case CharacterCodes.verticalTab: @@ -411,6 +414,9 @@ module ts { break; default: if (ch > CharacterCodes.maxAsciiCharacter && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (result && result.length && isLineBreak(ch)) { + result[result.length - 1].hasTrailingNewLine = true; + } pos++; continue; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 11d30c33937..2c7cdd27d9f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -512,6 +512,10 @@ module ts { filename: string; } + export interface Comment extends TextRange { + hasTrailingNewLine?: boolean; + } + export interface SourceFile extends Block { filename: string; text: string; diff --git a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js index 994da294ea9..8babd703b0f 100644 --- a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js @@ -67,6 +67,7 @@ var X; var Y = X.Y; })(X || (X = {})); //// [test.js] +//var cl: { x: number; y: number; } var cl = new X.Y.Point(1, 1); var cl = X.Y.Point.Origin; //// [simple.js] @@ -79,6 +80,7 @@ var A; (function (A) { A.Instance = new A(); })(A || (A = {})); +// ensure merging works as expected var a = A.Instance; var a = new A(); var a; diff --git a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js index e23d7ae1456..591845b627e 100644 --- a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js +++ b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.js @@ -14,5 +14,6 @@ module A { //// [ExportVariableWithAccessibleTypeInTypeAnnotation.js] var A; (function (A) { + // valid since Point is exported A.Origin = { x: 0, y: 0 }; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js index f6e60e3f4ab..d63edb65569 100644 --- a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js +++ b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.js @@ -21,6 +21,8 @@ module A { //// [ExportVariableWithInaccessibleTypeInTypeAnnotation.js] var A; (function (A) { + // valid since Point is exported A.Origin = { x: 0, y: 0 }; + // invalid Point3d is not exported A.Origin3d = { x: 0, y: 0, z: 0 }; })(A || (A = {})); diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js index 590bf1bb794..7555ae217e5 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js @@ -59,8 +59,10 @@ var A; return AG2; })(); })(A || (A = {})); +// no errors expected, these are all exported var a; var a = new A.A(); var AG = new A.AG(); +// errors expected, these are not exported var a2 = new A.A2(); var ag2 = new A.A2(); diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js index 6a147257323..afcef6bbb5c 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedEnums.js @@ -25,5 +25,7 @@ var A; Day[Day["Tuesday"] = 1] = "Tuesday"; })(Day || (Day = {})); })(A || (A = {})); +// not an error since exported var a = 0 /* Red */; +// error not exported var b = A.Day.Monday; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js index 35b5959bfcd..d7e5eed0dfb 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.js @@ -47,9 +47,11 @@ var A; return null; } })(A || (A = {})); +// these should not be errors since the functions are exported var fn; var fn = A.fn; var fng; var fng = A.fng; +// these should be errors since the functions are not exported var fn2 = A.fn2; var fng2 = A.fng2; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js index 101031740cc..e31ca5d5885 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js @@ -55,11 +55,14 @@ var Geometry; (function (Geometry) { var Lines = B; Geometry.Origin = { x: 0, y: 0 }; + // this is valid since B.Line _is_ visible outside Geometry Geometry.Unit = new Lines.Line(Geometry.Origin, { x: 1, y: 0 }); })(Geometry || (Geometry = {})); +// expected to work since all are exported var p; var p; var p = Geometry.Origin; var line; var line = Geometry.Unit; +// not expected to work since non are exported var line = Geometry.Lines.Line; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js index 2563aafd95a..0a2c63342c6 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedVariables.js @@ -20,4 +20,5 @@ var A; })(A || (A = {})); var x; var x = A.x; +// Error, since y is not exported var y = A.y; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index 670c15add79..20347e54e83 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -61,6 +61,7 @@ var A; return Point; })(); })(A || (A = {})); +// ensure merges as expected var p; var p; var X; @@ -92,5 +93,6 @@ var X; })(X.Y || (X.Y = {})); var Y = X.Y; })(X || (X = {})); +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js index d18d8fe7a26..b9218ea1a55 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js @@ -38,7 +38,9 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.js] +// ensure merges as expected var p; var p; +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js index 809b4e64896..c845dbe8705 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js @@ -56,6 +56,7 @@ var A; //// [part2.js] var A; (function (A) { + // not a collision, since we don't export var Origin = "0,0"; (function (Utils) { var Plane = (function () { @@ -70,6 +71,7 @@ var A; var Utils = A.Utils; })(A || (A = {})); //// [part3.js] +// test the merging actually worked var o; var o; var o = A.Origin; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js index 0f77987ee92..b54a0938a32 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js @@ -38,7 +38,9 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.js] +// ensure merges as expected var p; var p; +// ensure merges as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js index 06881ce3ef6..c629923c131 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js @@ -49,6 +49,7 @@ var A; B.x; })(B || (B = {})); })(A || (A = {})); +// ensure the right var decl is exported var x; var x = A.B.x; var X; @@ -81,5 +82,6 @@ var X; })(X.Y || (X.Y = {})); var Y = X.Y; })(X || (X = {})); +// make sure merging works as expected var l; var l; diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js index bb44fdfdd37..3af271ed820 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js @@ -48,6 +48,7 @@ var Root; var otherRoot; (function (otherRoot) { (function (A) { + // have to be fully qualified since in different root A.Origin = { x: 0, y: 0 }; (function (Utils) { var Plane = (function () { diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js index ae716b2db55..07350eba553 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js @@ -67,6 +67,7 @@ var A; var Utils = A.Utils; })(A || (A = {})); //// [part3.js] +// test the merging actually worked var o; var o; var o = A.Origin; diff --git a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js index b6fa51ae5de..c4e30f95db2 100644 --- a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js @@ -64,15 +64,18 @@ var b; var c; var d; var e; +// any as left operand, result is type Any except plusing string var r1 = a + a; var r2 = a + b; var r3 = a + c; var r4 = a + d; var r5 = a + e; +// any as right operand, result is type Any except plusing string var r6 = b + a; var r7 = c + a; var r8 = d + a; var r9 = e + a; +// other cases var r10 = a + foo; var r11 = a + foo(); var r12 = a + C; diff --git a/tests/baselines/reference/additionOperatorWithInvalidOperands.js b/tests/baselines/reference/additionOperatorWithInvalidOperands.js index 038094a64dd..85baac8f9ca 100644 --- a/tests/baselines/reference/additionOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithInvalidOperands.js @@ -64,15 +64,19 @@ var a; var b; var c; var d; +// boolean + every type except any and string var r1 = a + a; var r2 = a + b; var r3 = a + c; +// number + every type except any and string var r4 = b + a; var r5 = b + b; var r6 = b + c; +// object + every type except any and string var r7 = c + a; var r8 = c + b; var r9 = c + c; +// other cases var r10 = a + true; var r11 = true + false; var r12 = true + 123; diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js index 61ac4a9fc88..40093289d6b 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js +++ b/tests/baselines/reference/additionOperatorWithNullValueAndInvalidOperator.js @@ -31,12 +31,14 @@ var a; var b; var c; var d; +// null + boolean/Object var r1 = null + a; var r2 = null + b; var r3 = null + c; var r4 = a + null; var r5 = b + null; var r6 = null + c; +// other cases var r7 = null + d; var r8 = null + true; var r9 = null + { a: '' }; diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js index ed3d2b6a992..bf260153c83 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js +++ b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.js @@ -41,8 +41,10 @@ var a; var b; var c; var d; +// null + any var r1 = null + a; var r2 = a + null; +// null + number/enum var r3 = null + b; var r4 = null + 1; var r5 = null + c; @@ -53,6 +55,7 @@ var r9 = 1 + null; var r10 = c + null; var r11 = 0 /* a */ + null; var r12 = E['a'] + null; +// null + string var r13 = null + d; var r14 = null + ''; var r15 = d + null; diff --git a/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js b/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js index 4e1200d876b..1ed9b3e9708 100644 --- a/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js +++ b/tests/baselines/reference/additionOperatorWithOnlyNullValueOrUndefinedValue.js @@ -6,6 +6,7 @@ var r3 = undefined + null; var r4 = undefined + undefined; //// [additionOperatorWithOnlyNullValueOrUndefinedValue.js] +// bug 819721 var r1 = null + null; var r2 = null + undefined; var r3 = undefined + null; diff --git a/tests/baselines/reference/additionOperatorWithStringAndEveryType.js b/tests/baselines/reference/additionOperatorWithStringAndEveryType.js index 549ce5aafb1..ecce65ba577 100644 --- a/tests/baselines/reference/additionOperatorWithStringAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithStringAndEveryType.js @@ -53,6 +53,8 @@ var e; var f; var g; var x; +// string could plus every type, and the result is always string +// string as left operand var r1 = x + a; var r2 = x + b; var r3 = x + c; @@ -60,6 +62,7 @@ var r4 = x + d; var r5 = x + e; var r6 = x + f; var r7 = x + g; +// string as right operand var r8 = a + x; var r9 = b + x; var r10 = c + x; @@ -67,6 +70,7 @@ var r11 = d + x; var r12 = e + x; var r13 = f + x; var r14 = g + x; +// other cases var r15 = x + E; var r16 = x + 0 /* a */; var r17 = x + ''; diff --git a/tests/baselines/reference/additionOperatorWithTypeParameter.js b/tests/baselines/reference/additionOperatorWithTypeParameter.js index d08ac3cc62e..1684182f002 100644 --- a/tests/baselines/reference/additionOperatorWithTypeParameter.js +++ b/tests/baselines/reference/additionOperatorWithTypeParameter.js @@ -52,6 +52,7 @@ function foo(t, u) { var e; var g; var f; + // type parameter as left operand var r1 = t + a; var r2 = t + b; var r3 = t + c; @@ -59,6 +60,7 @@ function foo(t, u) { var r5 = t + e; var r6 = t + g; var r7 = t + f; + // type parameter as right operand var r8 = a + t; var r9 = b + t; var r10 = c + t; @@ -66,6 +68,7 @@ function foo(t, u) { var r12 = e + t; var r13 = g + t; var r14 = f + t; + // other cases var r15 = t + null; var r16 = t + undefined; var r17 = t + t; diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js index 4eb72595851..a7444c9c94b 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndInvalidOperands.js @@ -31,12 +31,14 @@ var a; var b; var c; var d; +// undefined + boolean/Object var r1 = undefined + a; var r2 = undefined + b; var r3 = undefined + c; var r4 = a + undefined; var r5 = b + undefined; var r6 = undefined + c; +// other cases var r7 = undefined + d; var r8 = undefined + true; var r9 = undefined + { a: '' }; diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js index a5d3037ae38..8dc995f9d9e 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.js @@ -41,8 +41,10 @@ var a; var b; var c; var d; +// undefined + any var r1 = undefined + a; var r2 = a + undefined; +// undefined + number/enum var r3 = undefined + b; var r4 = undefined + 1; var r5 = undefined + c; @@ -53,6 +55,7 @@ var r9 = 1 + undefined; var r10 = c + undefined; var r11 = 0 /* a */ + undefined; var r12 = E['a'] + undefined; +// undefined + string var r13 = undefined + d; var r14 = undefined + ''; var r15 = d + undefined; diff --git a/tests/baselines/reference/ambientDeclarations.js b/tests/baselines/reference/ambientDeclarations.js index 8d03ac0a600..729ecf7d45e 100644 --- a/tests/baselines/reference/ambientDeclarations.js +++ b/tests/baselines/reference/ambientDeclarations.js @@ -78,5 +78,6 @@ declare module 'external1' { //// [ambientDeclarations.js] var x = E3.B; +// Ambient module members are always exported with or without export keyword var p = M1.x; var q = M1.fn(); diff --git a/tests/baselines/reference/anyAsConstructor.js b/tests/baselines/reference/anyAsConstructor.js index 1924a2bd285..409a86dcc9b 100644 --- a/tests/baselines/reference/anyAsConstructor.js +++ b/tests/baselines/reference/anyAsConstructor.js @@ -11,8 +11,11 @@ var c = new x(x); var d = new x(x); // no error //// [anyAsConstructor.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = new x(); var b = new x('hello'); var c = new x(x); +// grammar allows this for constructors var d = new x(x); diff --git a/tests/baselines/reference/anyAsFunctionCall.js b/tests/baselines/reference/anyAsFunctionCall.js index 468c0a98f4d..9b1e0852de9 100644 --- a/tests/baselines/reference/anyAsFunctionCall.js +++ b/tests/baselines/reference/anyAsFunctionCall.js @@ -8,6 +8,8 @@ var b = x('hello'); var c = x(x); //// [anyAsFunctionCall.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = x(); var b = x('hello'); diff --git a/tests/baselines/reference/anyAsGenericFunctionCall.js b/tests/baselines/reference/anyAsGenericFunctionCall.js index 6d61470bd17..64097f4e3c7 100644 --- a/tests/baselines/reference/anyAsGenericFunctionCall.js +++ b/tests/baselines/reference/anyAsGenericFunctionCall.js @@ -11,6 +11,8 @@ var c = x(x); var d = x(x); //// [anyAsGenericFunctionCall.js] +// any is considered an untyped function call +// can be called except with type arguments which is an error var x; var a = x(); var b = x('hello'); diff --git a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js index 0bb27138c23..7cb45f63230 100644 --- a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js +++ b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.js @@ -105,6 +105,7 @@ var rj8 = b | b; //// [arithmeticOperatorWithAnyAndNumber.js] var a; var b; +// operator * var ra1 = a * a; var ra2 = a * b; var ra3 = a * 0; @@ -113,6 +114,7 @@ var ra5 = 0 * 0; var ra6 = b * 0; var ra7 = 0 * b; var ra8 = b * b; +// operator / var rb1 = a / a; var rb2 = a / b; var rb3 = a / 0; @@ -121,6 +123,7 @@ var rb5 = 0 / 0; var rb6 = b / 0; var rb7 = 0 / b; var rb8 = b / b; +// operator % var rc1 = a % a; var rc2 = a % b; var rc3 = a % 0; @@ -129,6 +132,7 @@ var rc5 = 0 % 0; var rc6 = b % 0; var rc7 = 0 % b; var rc8 = b % b; +// operator - var rd1 = a - a; var rd2 = a - b; var rd3 = a - 0; @@ -137,6 +141,7 @@ var rd5 = 0 - 0; var rd6 = b - 0; var rd7 = 0 - b; var rd8 = b - b; +// operator << var re1 = a << a; var re2 = a << b; var re3 = a << 0; @@ -145,6 +150,7 @@ var re5 = 0 << 0; var re6 = b << 0; var re7 = 0 << b; var re8 = b << b; +// operator >> var rf1 = a >> a; var rf2 = a >> b; var rf3 = a >> 0; @@ -153,6 +159,7 @@ var rf5 = 0 >> 0; var rf6 = b >> 0; var rf7 = 0 >> b; var rf8 = b >> b; +// operator >>> var rg1 = a >>> a; var rg2 = a >>> b; var rg3 = a >>> 0; @@ -161,6 +168,7 @@ var rg5 = 0 >>> 0; var rg6 = b >>> 0; var rg7 = 0 >>> b; var rg8 = b >>> b; +// operator & var rh1 = a & a; var rh2 = a & b; var rh3 = a & 0; @@ -169,6 +177,7 @@ var rh5 = 0 & 0; var rh6 = b & 0; var rh7 = 0 & b; var rh8 = b & b; +// operator ^ var ri1 = a ^ a; var ri2 = a ^ b; var ri3 = a ^ 0; @@ -177,6 +186,7 @@ var ri5 = 0 ^ 0; var ri6 = b ^ 0; var ri7 = 0 ^ b; var ri8 = b ^ b; +// operator | var rj1 = a | a; var rj2 = a | b; var rj3 = a | 0; diff --git a/tests/baselines/reference/arithmeticOperatorWithEnum.js b/tests/baselines/reference/arithmeticOperatorWithEnum.js index ac2bfb233ed..349266c4fb3 100644 --- a/tests/baselines/reference/arithmeticOperatorWithEnum.js +++ b/tests/baselines/reference/arithmeticOperatorWithEnum.js @@ -159,6 +159,7 @@ var E; var a; var b; var c; +// operator * var ra1 = c * a; var ra2 = c * b; var ra3 = c * c; @@ -171,6 +172,7 @@ var ra9 = 0 /* a */ * 1; var ra10 = a * 1 /* b */; var ra11 = b * 1 /* b */; var ra12 = 1 * 1 /* b */; +// operator / var rb1 = c / a; var rb2 = c / b; var rb3 = c / c; @@ -183,6 +185,7 @@ var rb9 = 0 /* a */ / 1; var rb10 = a / 1 /* b */; var rb11 = b / 1 /* b */; var rb12 = 1 / 1 /* b */; +// operator % var rc1 = c % a; var rc2 = c % b; var rc3 = c % c; @@ -195,6 +198,7 @@ var rc9 = 0 /* a */ % 1; var rc10 = a % 1 /* b */; var rc11 = b % 1 /* b */; var rc12 = 1 % 1 /* b */; +// operator - var rd1 = c - a; var rd2 = c - b; var rd3 = c - c; @@ -207,6 +211,7 @@ var rd9 = 0 /* a */ - 1; var rd10 = a - 1 /* b */; var rd11 = b - 1 /* b */; var rd12 = 1 - 1 /* b */; +// operator << var re1 = c << a; var re2 = c << b; var re3 = c << c; @@ -219,6 +224,7 @@ var re9 = 0 /* a */ << 1; var re10 = a << 1 /* b */; var re11 = b << 1 /* b */; var re12 = 1 << 1 /* b */; +// operator >> var rf1 = c >> a; var rf2 = c >> b; var rf3 = c >> c; @@ -231,6 +237,7 @@ var rf9 = 0 /* a */ >> 1; var rf10 = a >> 1 /* b */; var rf11 = b >> 1 /* b */; var rf12 = 1 >> 1 /* b */; +// operator >>> var rg1 = c >>> a; var rg2 = c >>> b; var rg3 = c >>> c; @@ -243,6 +250,7 @@ var rg9 = 0 /* a */ >>> 1; var rg10 = a >>> 1 /* b */; var rg11 = b >>> 1 /* b */; var rg12 = 1 >>> 1 /* b */; +// operator & var rh1 = c & a; var rh2 = c & b; var rh3 = c & c; @@ -255,6 +263,7 @@ var rh9 = 0 /* a */ & 1; var rh10 = a & 1 /* b */; var rh11 = b & 1 /* b */; var rh12 = 1 & 1 /* b */; +// operator ^ var ri1 = c ^ a; var ri2 = c ^ b; var ri3 = c ^ c; @@ -267,6 +276,7 @@ var ri9 = 0 /* a */ ^ 1; var ri10 = a ^ 1 /* b */; var ri11 = b ^ 1 /* b */; var ri12 = 1 ^ 1 /* b */; +// operator | var rj1 = c | a; var rj2 = c | b; var rj3 = c | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js index 6e4fb872d1e..b41e3969b77 100644 --- a/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithInvalidOperands.js @@ -594,6 +594,8 @@ var c; var d; var e; var f; +// All of the below should be an error unless otherwise noted +// operator * var r1a1 = a * a; var r1a2 = a * b; var r1a3 = a * c; @@ -642,6 +644,7 @@ var r1h3 = c * 1 /* b */; var r1h4 = d * 1 /* b */; var r1h5 = e * 1 /* b */; var r1h6 = f * 1 /* b */; +// operator / var r2a1 = a / a; var r2a2 = a / b; var r2a3 = a / c; @@ -690,6 +693,7 @@ var r2h3 = c / 1 /* b */; var r2h4 = d / 1 /* b */; var r2h5 = e / 1 /* b */; var r2h6 = f / 1 /* b */; +// operator % var r3a1 = a % a; var r3a2 = a % b; var r3a3 = a % c; @@ -738,6 +742,7 @@ var r3h3 = c % 1 /* b */; var r3h4 = d % 1 /* b */; var r3h5 = e % 1 /* b */; var r3h6 = f % 1 /* b */; +// operator - var r4a1 = a - a; var r4a2 = a - b; var r4a3 = a - c; @@ -786,6 +791,7 @@ var r4h3 = c - 1 /* b */; var r4h4 = d - 1 /* b */; var r4h5 = e - 1 /* b */; var r4h6 = f - 1 /* b */; +// operator << var r5a1 = a << a; var r5a2 = a << b; var r5a3 = a << c; @@ -834,6 +840,7 @@ var r5h3 = c << 1 /* b */; var r5h4 = d << 1 /* b */; var r5h5 = e << 1 /* b */; var r5h6 = f << 1 /* b */; +// operator >> var r6a1 = a >> a; var r6a2 = a >> b; var r6a3 = a >> c; @@ -882,6 +889,7 @@ var r6h3 = c >> 1 /* b */; var r6h4 = d >> 1 /* b */; var r6h5 = e >> 1 /* b */; var r6h6 = f >> 1 /* b */; +// operator >>> var r7a1 = a >>> a; var r7a2 = a >>> b; var r7a3 = a >>> c; @@ -930,6 +938,7 @@ var r7h3 = c >>> 1 /* b */; var r7h4 = d >>> 1 /* b */; var r7h5 = e >>> 1 /* b */; var r7h6 = f >>> 1 /* b */; +// operator & var r8a1 = a & a; var r8a2 = a & b; var r8a3 = a & c; @@ -978,6 +987,7 @@ var r8h3 = c & 1 /* b */; var r8h4 = d & 1 /* b */; var r8h5 = e & 1 /* b */; var r8h6 = f & 1 /* b */; +// operator ^ var r9a1 = a ^ a; var r9a2 = a ^ b; var r9a3 = a ^ c; @@ -1026,6 +1036,7 @@ var r9h3 = c ^ 1 /* b */; var r9h4 = d ^ 1 /* b */; var r9h5 = e ^ 1 /* b */; var r9h6 = f ^ 1 /* b */; +// operator | var r10a1 = a | a; var r10a2 = a | b; var r10a3 = a | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js index 99849fbb818..b277abb668d 100644 --- a/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithNullValueAndInvalidOperands.js @@ -177,9 +177,12 @@ var r10d2 = '' | null; var r10d3 = {} | null; //// [arithmeticOperatorWithNullValueAndInvalidOperands.js] +// If one operand is the null or undefined value, it is treated as having the type of the +// other operand. var a; var b; var c; +// operator * var r1a1 = null * a; var r1a2 = null * b; var r1a3 = null * c; @@ -192,6 +195,7 @@ var r1c3 = null * {}; var r1d1 = true * null; var r1d2 = '' * null; var r1d3 = {} * null; +// operator / var r2a1 = null / a; var r2a2 = null / b; var r2a3 = null / c; @@ -204,6 +208,7 @@ var r2c3 = null / {}; var r2d1 = true / null; var r2d2 = '' / null; var r2d3 = {} / null; +// operator % var r3a1 = null % a; var r3a2 = null % b; var r3a3 = null % c; @@ -216,6 +221,7 @@ var r3c3 = null % {}; var r3d1 = true % null; var r3d2 = '' % null; var r3d3 = {} % null; +// operator - var r4a1 = null - a; var r4a2 = null - b; var r4a3 = null - c; @@ -228,6 +234,7 @@ var r4c3 = null - {}; var r4d1 = true - null; var r4d2 = '' - null; var r4d3 = {} - null; +// operator << var r5a1 = null << a; var r5a2 = null << b; var r5a3 = null << c; @@ -240,6 +247,7 @@ var r5c3 = null << {}; var r5d1 = true << null; var r5d2 = '' << null; var r5d3 = {} << null; +// operator >> var r6a1 = null >> a; var r6a2 = null >> b; var r6a3 = null >> c; @@ -252,6 +260,7 @@ var r6c3 = null >> {}; var r6d1 = true >> null; var r6d2 = '' >> null; var r6d3 = {} >> null; +// operator >>> var r7a1 = null >>> a; var r7a2 = null >>> b; var r7a3 = null >>> c; @@ -264,6 +273,7 @@ var r7c3 = null >>> {}; var r7d1 = true >>> null; var r7d2 = '' >>> null; var r7d3 = {} >>> null; +// operator & var r8a1 = null & a; var r8a2 = null & b; var r8a3 = null & c; @@ -276,6 +286,7 @@ var r8c3 = null & {}; var r8d1 = true & null; var r8d2 = '' & null; var r8d3 = {} & null; +// operator ^ var r9a1 = null ^ a; var r9a2 = null ^ b; var r9a3 = null ^ c; @@ -288,6 +299,7 @@ var r9c3 = null ^ {}; var r9d1 = true ^ null; var r9d2 = '' ^ null; var r9d3 = {} ^ null; +// operator | var r10a1 = null | a; var r10a2 = null | b; var r10a3 = null | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js index 1775564bfa2..a60302bf0b2 100644 --- a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.js @@ -118,6 +118,7 @@ var E; })(E || (E = {})); var a; var b; +// operator * var ra1 = null * a; var ra2 = null * b; var ra3 = null * 1; @@ -126,6 +127,7 @@ var ra5 = a * null; var ra6 = b * null; var ra7 = 0 * null; var ra8 = 1 /* b */ * null; +// operator / var rb1 = null / a; var rb2 = null / b; var rb3 = null / 1; @@ -134,6 +136,7 @@ var rb5 = a / null; var rb6 = b / null; var rb7 = 0 / null; var rb8 = 1 /* b */ / null; +// operator % var rc1 = null % a; var rc2 = null % b; var rc3 = null % 1; @@ -142,6 +145,7 @@ var rc5 = a % null; var rc6 = b % null; var rc7 = 0 % null; var rc8 = 1 /* b */ % null; +// operator - var rd1 = null - a; var rd2 = null - b; var rd3 = null - 1; @@ -150,6 +154,7 @@ var rd5 = a - null; var rd6 = b - null; var rd7 = 0 - null; var rd8 = 1 /* b */ - null; +// operator << var re1 = null << a; var re2 = null << b; var re3 = null << 1; @@ -158,6 +163,7 @@ var re5 = a << null; var re6 = b << null; var re7 = 0 << null; var re8 = 1 /* b */ << null; +// operator >> var rf1 = null >> a; var rf2 = null >> b; var rf3 = null >> 1; @@ -166,6 +172,7 @@ var rf5 = a >> null; var rf6 = b >> null; var rf7 = 0 >> null; var rf8 = 1 /* b */ >> null; +// operator >>> var rg1 = null >>> a; var rg2 = null >>> b; var rg3 = null >>> 1; @@ -174,6 +181,7 @@ var rg5 = a >>> null; var rg6 = b >>> null; var rg7 = 0 >>> null; var rg8 = 1 /* b */ >>> null; +// operator & var rh1 = null & a; var rh2 = null & b; var rh3 = null & 1; @@ -182,6 +190,7 @@ var rh5 = a & null; var rh6 = b & null; var rh7 = 0 & null; var rh8 = 1 /* b */ & null; +// operator ^ var ri1 = null ^ a; var ri2 = null ^ b; var ri3 = null ^ 1; @@ -190,6 +199,7 @@ var ri5 = a ^ null; var ri6 = b ^ null; var ri7 = 0 ^ null; var ri8 = 1 /* b */ ^ null; +// operator | var rj1 = null | a; var rj2 = null | b; var rj3 = null | 1; diff --git a/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js b/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js index d0dbdead8c8..f1421a6b5c9 100644 --- a/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js +++ b/tests/baselines/reference/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js @@ -60,42 +60,52 @@ var rj3 = undefined | null; var rj4 = undefined | undefined; //// [arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js] +// operator * var ra1 = null * null; var ra2 = null * undefined; var ra3 = undefined * null; var ra4 = undefined * undefined; +// operator / var rb1 = null / null; var rb2 = null / undefined; var rb3 = undefined / null; var rb4 = undefined / undefined; +// operator % var rc1 = null % null; var rc2 = null % undefined; var rc3 = undefined % null; var rc4 = undefined % undefined; +// operator - var rd1 = null - null; var rd2 = null - undefined; var rd3 = undefined - null; var rd4 = undefined - undefined; +// operator << var re1 = null << null; var re2 = null << undefined; var re3 = undefined << null; var re4 = undefined << undefined; +// operator >> var rf1 = null >> null; var rf2 = null >> undefined; var rf3 = undefined >> null; var rf4 = undefined >> undefined; +// operator >>> var rg1 = null >>> null; var rg2 = null >>> undefined; var rg3 = undefined >>> null; var rg4 = undefined >>> undefined; +// operator & var rh1 = null & null; var rh2 = null & undefined; var rh3 = undefined & null; var rh4 = undefined & undefined; +// operator ^ var ri1 = null ^ null; var ri2 = null ^ undefined; var ri3 = undefined ^ null; var ri4 = undefined ^ undefined; +// operator | var rj1 = null | null; var rj2 = null | undefined; var rj3 = undefined | null; diff --git a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js index 4b79d44f1f0..b64c2d9dc09 100644 --- a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndInvalidOperands.js @@ -177,9 +177,12 @@ var r10d2 = '' | undefined; var r10d3 = {} | undefined; //// [arithmeticOperatorWithUndefinedValueAndInvalidOperands.js] +// If one operand is the undefined or undefined value, it is treated as having the type of the +// other operand. var a; var b; var c; +// operator * var r1a1 = undefined * a; var r1a2 = undefined * b; var r1a3 = undefined * c; @@ -192,6 +195,7 @@ var r1c3 = undefined * {}; var r1d1 = true * undefined; var r1d2 = '' * undefined; var r1d3 = {} * undefined; +// operator / var r2a1 = undefined / a; var r2a2 = undefined / b; var r2a3 = undefined / c; @@ -204,6 +208,7 @@ var r2c3 = undefined / {}; var r2d1 = true / undefined; var r2d2 = '' / undefined; var r2d3 = {} / undefined; +// operator % var r3a1 = undefined % a; var r3a2 = undefined % b; var r3a3 = undefined % c; @@ -216,6 +221,7 @@ var r3c3 = undefined % {}; var r3d1 = true % undefined; var r3d2 = '' % undefined; var r3d3 = {} % undefined; +// operator - var r4a1 = undefined - a; var r4a2 = undefined - b; var r4a3 = undefined - c; @@ -228,6 +234,7 @@ var r4c3 = undefined - {}; var r4d1 = true - undefined; var r4d2 = '' - undefined; var r4d3 = {} - undefined; +// operator << var r5a1 = undefined << a; var r5a2 = undefined << b; var r5a3 = undefined << c; @@ -240,6 +247,7 @@ var r5c3 = undefined << {}; var r5d1 = true << undefined; var r5d2 = '' << undefined; var r5d3 = {} << undefined; +// operator >> var r6a1 = undefined >> a; var r6a2 = undefined >> b; var r6a3 = undefined >> c; @@ -252,6 +260,7 @@ var r6c3 = undefined >> {}; var r6d1 = true >> undefined; var r6d2 = '' >> undefined; var r6d3 = {} >> undefined; +// operator >>> var r7a1 = undefined >>> a; var r7a2 = undefined >>> b; var r7a3 = undefined >>> c; @@ -264,6 +273,7 @@ var r7c3 = undefined >>> {}; var r7d1 = true >>> undefined; var r7d2 = '' >>> undefined; var r7d3 = {} >>> undefined; +// operator & var r8a1 = undefined & a; var r8a2 = undefined & b; var r8a3 = undefined & c; @@ -276,6 +286,7 @@ var r8c3 = undefined & {}; var r8d1 = true & undefined; var r8d2 = '' & undefined; var r8d3 = {} & undefined; +// operator ^ var r9a1 = undefined ^ a; var r9a2 = undefined ^ b; var r9a3 = undefined ^ c; @@ -288,6 +299,7 @@ var r9c3 = undefined ^ {}; var r9d1 = true ^ undefined; var r9d2 = '' ^ undefined; var r9d3 = {} ^ undefined; +// operator | var r10a1 = undefined | a; var r10a2 = undefined | b; var r10a3 = undefined | c; diff --git a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js index 41a0900d64a..c608ccfa909 100644 --- a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js +++ b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.js @@ -118,6 +118,7 @@ var E; })(E || (E = {})); var a; var b; +// operator * var ra1 = undefined * a; var ra2 = undefined * b; var ra3 = undefined * 1; @@ -126,6 +127,7 @@ var ra5 = a * undefined; var ra6 = b * undefined; var ra7 = 0 * undefined; var ra8 = 1 /* b */ * undefined; +// operator / var rb1 = undefined / a; var rb2 = undefined / b; var rb3 = undefined / 1; @@ -134,6 +136,7 @@ var rb5 = a / undefined; var rb6 = b / undefined; var rb7 = 0 / undefined; var rb8 = 1 /* b */ / undefined; +// operator % var rc1 = undefined % a; var rc2 = undefined % b; var rc3 = undefined % 1; @@ -142,6 +145,7 @@ var rc5 = a % undefined; var rc6 = b % undefined; var rc7 = 0 % undefined; var rc8 = 1 /* b */ % undefined; +// operator - var rd1 = undefined - a; var rd2 = undefined - b; var rd3 = undefined - 1; @@ -150,6 +154,7 @@ var rd5 = a - undefined; var rd6 = b - undefined; var rd7 = 0 - undefined; var rd8 = 1 /* b */ - undefined; +// operator << var re1 = undefined << a; var re2 = undefined << b; var re3 = undefined << 1; @@ -158,6 +163,7 @@ var re5 = a << undefined; var re6 = b << undefined; var re7 = 0 << undefined; var re8 = 1 /* b */ << undefined; +// operator >> var rf1 = undefined >> a; var rf2 = undefined >> b; var rf3 = undefined >> 1; @@ -166,6 +172,7 @@ var rf5 = a >> undefined; var rf6 = b >> undefined; var rf7 = 0 >> undefined; var rf8 = 1 /* b */ >> undefined; +// operator >>> var rg1 = undefined >>> a; var rg2 = undefined >>> b; var rg3 = undefined >>> 1; @@ -174,6 +181,7 @@ var rg5 = a >>> undefined; var rg6 = b >>> undefined; var rg7 = 0 >>> undefined; var rg8 = 1 /* b */ >>> undefined; +// operator & var rh1 = undefined & a; var rh2 = undefined & b; var rh3 = undefined & 1; @@ -182,6 +190,7 @@ var rh5 = a & undefined; var rh6 = b & undefined; var rh7 = 0 & undefined; var rh8 = 1 /* b */ & undefined; +// operator ^ var ri1 = undefined ^ a; var ri2 = undefined ^ b; var ri3 = undefined ^ 1; @@ -190,6 +199,7 @@ var ri5 = a ^ undefined; var ri6 = b ^ undefined; var ri7 = 0 ^ undefined; var ri8 = 1 /* b */ ^ undefined; +// operator | var rj1 = undefined | a; var rj2 = undefined | b; var rj3 = undefined | 1; diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index 18550d61d5c..4abd6b534ff 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -121,6 +121,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with the following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var a1 = null; var c1 = new C1(); var i1 = c1; diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 85d65f0ef6a..d7aef759546 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -95,6 +95,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with the following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var a1 = null; var c1 = new C1(); var i1 = c1; diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index db40934368b..87ddf2d41b4 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -35,6 +35,17 @@ var C3 = (function () { }; return C3; })(); +/* + +This behaves unexpectedly with teh following types: + +Type 1 of any[]: + +* Type 2 of the following throws an error but shouldn't: () => void[], SomeClass[], and {one: 1}[]. + +* Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClass. + +*/ var c3 = new C3(); var o1 = { one: 1 }; var arr_any = []; diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 0a1b29e5e7f..675d84119c0 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -102,6 +102,7 @@ var f = (function () { var t2 = [{ x: true, y: new derived() }, { x: false, y: new base() }]; var t3 = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; var anyObj = null; + // Order matters here so test all the variants var a1 = [{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }]; var a2 = [{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }]; var a3 = [{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }]; diff --git a/tests/baselines/reference/arrayLiteral.js b/tests/baselines/reference/arrayLiteral.js index 557b9be6a80..ae210aabd42 100644 --- a/tests/baselines/reference/arrayLiteral.js +++ b/tests/baselines/reference/arrayLiteral.js @@ -16,6 +16,7 @@ var y2: number[] = [1, 2]; var y2: number[] = new Array(); //// [arrayLiteral.js] +// valid uses of array literals var x = []; var x = new Array(1); var y = [1]; diff --git a/tests/baselines/reference/arrayLiteralWidened.js b/tests/baselines/reference/arrayLiteralWidened.js index 11fad71e9f2..53d2a19a1a4 100644 --- a/tests/baselines/reference/arrayLiteralWidened.js +++ b/tests/baselines/reference/arrayLiteralWidened.js @@ -15,6 +15,7 @@ var c = [[[null]],[undefined]] //// [arrayLiteralWidened.js] +// array literals are widened upon assignment according to their element type var a = []; var a = [null, null]; var a = [undefined, undefined]; diff --git a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js index f1720efd418..d2ca43796f0 100644 --- a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js +++ b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.js @@ -16,6 +16,7 @@ var gs = [(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => //// [arrayLiteralWithMultipleBestCommonTypes.js] +// when multiple best common types exist we will choose the first candidate var a; var b; var c; diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js index e4d9b138b56..d5383f5bbc2 100644 --- a/tests/baselines/reference/arrayLiterals.js +++ b/tests/baselines/reference/arrayLiterals.js @@ -51,10 +51,12 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// Empty array literal with no contextual type has type Undefined[] var arr1 = [[], [1], ['']]; var arr1; var arr2 = [[null], [1], ['']]; var arr2; +// Array literal with elements of only EveryType E has type E[] var stringArrArr = [[''], [""]]; var stringArrArr; var stringArr = ['', ""]; @@ -72,6 +74,7 @@ var classArr = [new C(), new C()]; var classArr; var classTypeArray = [C, C, C]; var classTypeArray; +// Contextual type C with numeric index signature makes array literal of EveryType E of type BCT(E,C)[] var context1 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; var context2 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; var context2; @@ -97,4 +100,5 @@ var Derived2 = (function (_super) { })(Base); ; var context3 = [new Derived1(), new Derived2()]; +// Contextual type C with numeric index signature of type Base makes array literal of Derived1 and Derived2 have type Base[] var context4 = [new Derived1(), new Derived1()]; diff --git a/tests/baselines/reference/arrayOfFunctionTypes3.js b/tests/baselines/reference/arrayOfFunctionTypes3.js index cf720720195..9d07a3211f9 100644 --- a/tests/baselines/reference/arrayOfFunctionTypes3.js +++ b/tests/baselines/reference/arrayOfFunctionTypes3.js @@ -27,6 +27,7 @@ var r6 = z2[0]; var r7 = r6(''); // any not string //// [arrayOfFunctionTypes3.js] +// valid uses of arrays of function types var x = [function () { return 1; }, function () { }]; var r2 = x[0](); diff --git a/tests/baselines/reference/arrayTypeOfFunctionTypes.js b/tests/baselines/reference/arrayTypeOfFunctionTypes.js index 355070d48d8..3c2aa7f1bcf 100644 --- a/tests/baselines/reference/arrayTypeOfFunctionTypes.js +++ b/tests/baselines/reference/arrayTypeOfFunctionTypes.js @@ -17,6 +17,7 @@ var r6 = r5(); var r6b = new r5(); // error //// [arrayTypeOfFunctionTypes.js] +// valid uses of arrays of function types var x; var r = x[1]; var r2 = r(); diff --git a/tests/baselines/reference/arrayTypeOfFunctionTypes2.js b/tests/baselines/reference/arrayTypeOfFunctionTypes2.js index 530a826700d..f9baa9871e1 100644 --- a/tests/baselines/reference/arrayTypeOfFunctionTypes2.js +++ b/tests/baselines/reference/arrayTypeOfFunctionTypes2.js @@ -17,6 +17,7 @@ var r6 = new r5(); var r6b = r5(); //// [arrayTypeOfFunctionTypes2.js] +// valid uses of arrays of function types var x; var r = x[1]; var r2 = new r(); diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js index d0b43e61c84..4302bb2e3e9 100644 --- a/tests/baselines/reference/arrowFunctionContexts.js +++ b/tests/baselines/reference/arrowFunctionContexts.js @@ -120,6 +120,7 @@ var Derived = (function (_super) { return Derived; })(Base); window.setTimeout(function () { return null; }, 100); +// Arrow function as value in array literal var obj = function (n) { return ''; }; var obj; var arr = [function (n) { return ''; }]; @@ -153,6 +154,7 @@ var M2; return Derived; })(Base); window.setTimeout(function () { return null; }, 100); + // Arrow function as value in array literal var obj = function (n) { return ''; }; var obj; var arr = [function (n) { return ''; }]; @@ -168,12 +170,14 @@ var M2; var b = function (s) { return s; }; })(M || (M = {})); })(M2 || (M2 = {})); +// (ParamList) => { ... } is a generic arrow function var generic1 = function (n) { return [n]; }; var generic1; var generic2 = function (n) { return [n]; }; var generic2; +// ((ParamList) => { ... } ) is a type assertion to an arrow function var asserted1 = (function (n) { return [n]; }); var asserted1; var asserted2 = (function (n) { diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index b403f30906c..abf9fe4a7b5 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -89,16 +89,19 @@ function tryCatchFn() { //// [arrowFunctionExpressions.js] +// ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = function (p) { return p.length; }; var a = function (p) { return p.length; }; +// Identifier => Block is equivalent to(Identifier) => Block var b = function (j) { return 0; }; var b = function (j) { return 0; }; +// Identifier => AssignmentExpression is equivalent to(Identifier) => AssignmentExpression var c; var d = function (n) { return c = n; }; var d = function (n) { return c = n; }; @@ -116,6 +119,7 @@ var MyClass = (function () { }; return MyClass; })(); +// Arrow function used in arrow function var arrrr = function () { return function (m) { return function () { return function (n) { return m + n; }; }; }; }; var e = arrrr()(3)()(4); var e; @@ -135,6 +139,7 @@ function outerFn() { var p; } } +// Arrow function used in nested function in arrow function var f = function (n) { function fn(x) { return function () { return n + x; }; diff --git a/tests/baselines/reference/assignAnyToEveryType.js b/tests/baselines/reference/assignAnyToEveryType.js index 483cef6d82b..47093cd0852 100644 --- a/tests/baselines/reference/assignAnyToEveryType.js +++ b/tests/baselines/reference/assignAnyToEveryType.js @@ -46,6 +46,7 @@ function k(a: T) { } //// [assignAnyToEveryType.js] +// all of these are valid var x; var a = x; var b = x; diff --git a/tests/baselines/reference/assignEveryTypeToAny.js b/tests/baselines/reference/assignEveryTypeToAny.js index 7f36d13d64c..c88fc2edc17 100644 --- a/tests/baselines/reference/assignEveryTypeToAny.js +++ b/tests/baselines/reference/assignEveryTypeToAny.js @@ -56,6 +56,7 @@ function j(a: T) { } //// [assignEveryTypeToAny.js] +// all of these are valid var x; x = 1; var a = 2; diff --git a/tests/baselines/reference/assignToInvalidLHS.js b/tests/baselines/reference/assignToInvalidLHS.js index 9307105cf10..13906d28fdf 100644 --- a/tests/baselines/reference/assignToInvalidLHS.js +++ b/tests/baselines/reference/assignToInvalidLHS.js @@ -5,4 +5,5 @@ declare var y:any; var x = new y = 5; //// [assignToInvalidLHS.js] +// Below is actually valid JavaScript (see http://es5.github.com/#x8.7 ), even though will always fail at runtime with 'invalid left-hand side' var x = new y = 5; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js index a52e6e13137..c187258ae45 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js @@ -135,6 +135,7 @@ var Errors; })(Base); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { + // target type with non-generic call signatures var a2; var a7; var a8; @@ -178,10 +179,12 @@ var Errors; })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); var WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { + // target type has generic call signature var a2; var b2; a2 = b2; b2 = a2; + // target type has generic call signature var a3; var b3; a3 = b3; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js index b4f6a4903a5..56f19b81499 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js @@ -135,6 +135,7 @@ var Errors; })(Base); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { + // target type with non-generic call signatures var a2; var a7; var a8; @@ -178,10 +179,12 @@ var Errors; })(WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {})); var WithGenericSignaturesInBaseType; (function (WithGenericSignaturesInBaseType) { + // target type has generic call signature var a2; var b2; a2 = b2; b2 = a2; + // target type has generic call signature var a3; var b3; a3 = b3; diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js index 649a6b72477..4e8052f56d0 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js @@ -8,6 +8,7 @@ f = g; // ok g = f; // ok //// [assignmentCompatWithGenericCallSignatures.js] +// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation var f; var g; f = g; diff --git a/tests/baselines/reference/assignmentLHSIsReference.js b/tests/baselines/reference/assignmentLHSIsReference.js index 65950ded275..cbcd2d40972 100644 --- a/tests/baselines/reference/assignmentLHSIsReference.js +++ b/tests/baselines/reference/assignmentLHSIsReference.js @@ -26,11 +26,13 @@ function fn2(x4: number) { //// [assignmentLHSIsReference.js] var value; +// identifiers: variable and parameter var x1; x1 = value; function fn1(x2) { x2 = value; } +// property accesses var x3; x3.a = value; x3['a'] = value; diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index 65219d2d2e5..35586df4f39 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -37,14 +37,17 @@ module x6b { export var y = 2; } // error //// [augmentedTypesVar.js] +// var then var var x1 = 1; var x1 = 2; +// var then function var x2 = 1; function x2() { } var x3 = 1; var x3 = function () { }; +// var then class var x4 = 1; var x4 = (function () { function x4() { @@ -59,11 +62,13 @@ var x4a = (function () { }; return x4a; })(); +// var then enum var x5 = 1; var x5; (function (x5) { x5[x5["One"] = 0] = "One"; })(x5 || (x5 = {})); +// var then module var x6 = 1; var x6a = 1; var x6a; diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js index 01af9d529ac..f04f99d5fb3 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js @@ -33,6 +33,8 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) +// no errors expected here var a; var b; var Base = (function () { diff --git a/tests/baselines/reference/bestCommonTypeWithContextualTyping.js b/tests/baselines/reference/bestCommonTypeWithContextualTyping.js index 00814d65526..804ec075292 100644 --- a/tests/baselines/reference/bestCommonTypeWithContextualTyping.js +++ b/tests/baselines/reference/bestCommonTypeWithContextualTyping.js @@ -22,6 +22,9 @@ var contextualOr: Contextual = e || e; // Ellement //// [bestCommonTypeWithContextualTyping.js] var e; +// All of these should pass. Neither type is a supertype of the other, but the RHS should +// always use Ellement in these examples (not Contextual). Because Ellement is assignable +// to Contextual, no errors. var arr = [e]; var obj = { s: e }; var conditional = null ? e : e; diff --git a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js index ed994ebf789..25622c3d4f3 100644 --- a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js +++ b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.js @@ -19,6 +19,7 @@ var b6 = [z, y, x]; var x; var y; var z; +// All these arrays should be X[] var b1 = [x, y, z]; var b2 = [x, z, y]; var b3 = [y, x, z]; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js index b4995f23050..9765448b8f2 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js @@ -63,6 +63,7 @@ var ResultIsNumber20 = ~~~(ANY + ANY1); ~~obj1.x; //// [bitwiseNotOperatorWithAnyOtherType.js] +// ~ operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -87,14 +88,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any other type var var ResultIsNumber = ~ANY1; var ResultIsNumber1 = ~ANY2; var ResultIsNumber2 = ~A; var ResultIsNumber3 = ~M; var ResultIsNumber4 = ~obj; var ResultIsNumber5 = ~obj1; +// any type literal var ResultIsNumber6 = ~undefined; var ResultIsNumber7 = ~null; +// any type expressions var ResultIsNumber8 = ~ANY2[0]; var ResultIsNumber9 = ~obj1.x; var ResultIsNumber10 = ~obj1.y; @@ -106,6 +110,7 @@ var ResultIsNumber15 = ~(ANY + ANY1); var ResultIsNumber16 = ~(null + undefined); var ResultIsNumber17 = ~(null + null); var ResultIsNumber18 = ~(undefined + undefined); +// multiple ~ operators var ResultIsNumber19 = ~~ANY; var ResultIsNumber20 = ~~~(ANY + ANY1); ~ANY; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js index 303be601a8b..e8e9a9e04d4 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js @@ -39,6 +39,7 @@ var ResultIsNumber8 = ~~BOOLEAN; ~M.n; //// [bitwiseNotOperatorWithBooleanType.js] +// ~ operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = ~BOOLEAN; +// boolean type literal var ResultIsNumber2 = ~true; var ResultIsNumber3 = ~{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = ~objA.a; var ResultIsNumber5 = ~M.n; var ResultIsNumber6 = ~foo(); var ResultIsNumber7 = ~A.foo(); +// multiple ~ operators var ResultIsNumber8 = ~~BOOLEAN; ~true; ~BOOLEAN; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js index 71568eefcec..ccf34db8b83 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.js @@ -26,9 +26,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = ~ENUM1; +// enum type expressions var ResultIsNumber2 = ~ENUM1[1]; var ResultIsNumber3 = ~(ENUM1[1] + ENUM1[2]); +// multiple ~ operators var ResultIsNumber4 = ~~~(ENUM1[1] + ENUM1[2]); ~ENUM1; ~ENUM1[1]; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js index d1684a65eaf..3fe796c98e1 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js @@ -45,6 +45,7 @@ var ResultIsNumber13 = ~~~(NUMBER + NUMBER); ~objA.a, M.n; //// [bitwiseNotOperatorWithNumberType.js] +// ~ operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -63,19 +64,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = ~NUMBER; var ResultIsNumber2 = ~NUMBER1; +// number type literal var ResultIsNumber3 = ~1; var ResultIsNumber4 = ~{ x: 1, y: 2 }; var ResultIsNumber5 = ~{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; var ResultIsNumber8 = ~NUMBER1[0]; var ResultIsNumber9 = ~foo(); var ResultIsNumber10 = ~A.foo(); var ResultIsNumber11 = ~(NUMBER + NUMBER); +// multiple ~ operators var ResultIsNumber12 = ~~NUMBER; var ResultIsNumber13 = ~~~(NUMBER + NUMBER); ~NUMBER; diff --git a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js index 4b18f4dbea5..f4bb2ba2cb7 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js @@ -44,6 +44,7 @@ var ResultIsNumber14 = ~~~(STRING + STRING); ~objA.a,M.n; //// [bitwiseNotOperatorWithStringType.js] +// ~ operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -62,13 +63,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = ~STRING; var ResultIsNumber2 = ~STRING1; +// string type literal var ResultIsNumber3 = ~""; var ResultIsNumber4 = ~{ x: "", y: "" }; var ResultIsNumber5 = ~{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = ~objA.a; var ResultIsNumber7 = ~M.n; var ResultIsNumber8 = ~STRING1[0]; @@ -76,6 +80,7 @@ var ResultIsNumber9 = ~foo(); var ResultIsNumber10 = ~A.foo(); var ResultIsNumber11 = ~(STRING + STRING); var ResultIsNumber12 = ~STRING.charAt(0); +// multiple ~ operators var ResultIsNumber13 = ~~STRING; var ResultIsNumber14 = ~~~(STRING + STRING); ~STRING; diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index 8e630e437a5..0791be6530f 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -26,6 +26,7 @@ var Foo = (function () { }; return Foo; })(); +//class Foo(s: String); var f1 = new Foo("hey"); f1.bar1(); Foo(); diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index b1dba82ae3c..4b93fee7a40 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -27,6 +27,7 @@ var Foo = (function () { }; return Foo; })(); +//class Foo(s: String); var f1 = new Foo("hey"); f1.bar1("a"); Foo(); diff --git a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js index e3ee6e2ed01..fe6770ca933 100644 --- a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js +++ b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType2.js @@ -16,5 +16,6 @@ var r2 = x.foo(''); // error //// [callSignaturesThatDifferOnlyByReturnType2.js] var x; +// BUG 822524 var r = x.foo(1); var r2 = x.foo(''); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index a00877e92c0..bd0039ff861 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -89,6 +89,7 @@ i(); i(1); i.foo(1); i.foo(1, 2); +// these are errors var a; a(); a(1); diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index 682b90ecc5a..9dbfc4388e9 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -44,6 +44,7 @@ var C2 = (function (_super) { } return C2; })(A); +// no errors var c; var c2; c = c2; diff --git a/tests/baselines/reference/classMemberInitializerScoping.js b/tests/baselines/reference/classMemberInitializerScoping.js index 20ce9c80263..70f562deb57 100644 --- a/tests/baselines/reference/classMemberInitializerScoping.js +++ b/tests/baselines/reference/classMemberInitializerScoping.js @@ -30,6 +30,7 @@ var CCC = (function () { CCC.staticY = aaa; return CCC; })(); +// above is equivalent to this: var aaaa = 1; var CCCC = (function () { function CCCC(aaaa) { diff --git a/tests/baselines/reference/classWithPublicProperty.js b/tests/baselines/reference/classWithPublicProperty.js index 277314db652..97b3f46ab49 100644 --- a/tests/baselines/reference/classWithPublicProperty.js +++ b/tests/baselines/reference/classWithPublicProperty.js @@ -37,6 +37,7 @@ var C = (function () { C.g = function () { return ''; }; return C; })(); +// all of these are valid var c = new C(); var r1 = c.x; var r2 = c.a; diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js index 29c9b61e6b0..3a0b17efa49 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.js @@ -48,11 +48,13 @@ BOOLEAN, ANY; NUMBER, ANY; STRING, ANY; OBJECT, ANY; +//Return type is any var resultIsAny1 = (ANY, ANY); var resultIsAny2 = (BOOLEAN, ANY); var resultIsAny3 = (NUMBER, ANY); var resultIsAny4 = (STRING, ANY); var resultIsAny5 = (OBJECT, ANY); +//Literal and expression var x; 1, ANY; ++NUMBER, ANY; diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js index a772c42b4b9..caab9865caf 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.js @@ -46,6 +46,7 @@ BOOLEAN, BOOLEAN; NUMBER, BOOLEAN; STRING, BOOLEAN; OBJECT, BOOLEAN; +//Return type is boolean var resultIsBoolean1 = (ANY, BOOLEAN); var resultIsBoolean2 = (BOOLEAN, BOOLEAN); var resultIsBoolean3 = (NUMBER, BOOLEAN); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js index b9d93041ff3..fc357009acd 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.js @@ -46,6 +46,7 @@ BOOLEAN, NUMBER; NUMBER, NUMBER; STRING, NUMBER; OBJECT, NUMBER; +//Return type is number var resultIsNumber1 = (ANY, NUMBER); var resultIsNumber2 = (BOOLEAN, NUMBER); var resultIsNumber3 = (NUMBER, NUMBER); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js index e822744b584..b182425a935 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js @@ -55,6 +55,7 @@ BOOLEAN, OBJECT; NUMBER, OBJECT; STRING, OBJECT; OBJECT, OBJECT; +//Return type is Object var resultIsObject1 = (ANY, OBJECT); var resultIsObject2 = (BOOLEAN, OBJECT); var resultIsObject3 = (NUMBER, OBJECT); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js index 78d2f882418..f4676a3d39b 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.js @@ -49,6 +49,7 @@ BOOLEAN, STRING; NUMBER, STRING; STRING, STRING; OBJECT, STRING; +//Return type is string var resultIsString1 = (ANY, STRING); var resultIsString2 = (BOOLEAN, STRING); var resultIsString3 = (NUMBER, STRING); diff --git a/tests/baselines/reference/commaOperatorsMultipleOperators.js b/tests/baselines/reference/commaOperatorsMultipleOperators.js index 1f37bafbd49..5d0447324b0 100644 --- a/tests/baselines/reference/commaOperatorsMultipleOperators.js +++ b/tests/baselines/reference/commaOperatorsMultipleOperators.js @@ -37,6 +37,7 @@ BOOLEAN, NUMBER, STRING; NUMBER, STRING, OBJECT; STRING, OBJECT, ANY; OBJECT, ANY, BOOLEAN; +//Results should have the same type as the third operand var resultIsAny1 = (STRING, OBJECT, ANY); var resultIsBoolean1 = (OBJECT, ANY, BOOLEAN); var resultIsNumber1 = (ANY, BOOLEAN, NUMBER); diff --git a/tests/baselines/reference/commentInMethodCall.js b/tests/baselines/reference/commentInMethodCall.js index 501139a2a72..0f304df0b35 100644 --- a/tests/baselines/reference/commentInMethodCall.js +++ b/tests/baselines/reference/commentInMethodCall.js @@ -6,6 +6,7 @@ s.map(// do something //// [commentInMethodCall.js] +//commment here var s; s.map(function () { }); diff --git a/tests/baselines/reference/commentsBeforeVariableStatement1.js b/tests/baselines/reference/commentsBeforeVariableStatement1.js index 598894dc936..21705826555 100644 --- a/tests/baselines/reference/commentsBeforeVariableStatement1.js +++ b/tests/baselines/reference/commentsBeforeVariableStatement1.js @@ -5,5 +5,6 @@ export var b: number; //// [commentsBeforeVariableStatement1.js] define(["require", "exports"], function (require, exports) { + /** b's comment*/ exports.b; }); diff --git a/tests/baselines/reference/commentsExternalModules.js b/tests/baselines/reference/commentsExternalModules.js index d50ce4b3d6c..7f2b9e4f3eb 100644 --- a/tests/baselines/reference/commentsExternalModules.js +++ b/tests/baselines/reference/commentsExternalModules.js @@ -64,6 +64,7 @@ var newVar2 = new extMod.m4.m2.c(); //// [commentsExternalModules_0.js] define(["require", "exports"], function (require, exports) { (function (m1) { + /** b's comment*/ m1.b; function foo() { return m1.b; @@ -76,6 +77,7 @@ define(["require", "exports"], function (require, exports) { })(); m2.c = c; ; + /** i*/ m2.i = new c(); })(m1.m2 || (m1.m2 = {})); var m2 = m1.m2; @@ -88,6 +90,7 @@ define(["require", "exports"], function (require, exports) { m1.fooExport(); var myvar = new m1.m2.c(); (function (m4) { + /** b's comment */ m4.b; function foo() { return m4.b; @@ -100,6 +103,7 @@ define(["require", "exports"], function (require, exports) { })(); m2.c = c; ; + /** i */ m2.i = new c(); })(m4.m2 || (m4.m2 = {})); var m2 = m4.m2; diff --git a/tests/baselines/reference/commentsFunction.js b/tests/baselines/reference/commentsFunction.js index 70ac9bc76d3..55e6e6d20c4 100644 --- a/tests/baselines/reference/commentsFunction.js +++ b/tests/baselines/reference/commentsFunction.js @@ -32,9 +32,13 @@ function fooWithParameters(a, b) { var d = a; } fooWithParameters("a", 10); +/** fooFunc + * comment + */ var fooFunc = function FooFunctionValue(b) { return b; }; +/// lamdaFoo var comment var lambdaFoo = function (a, b) { return a + b; }; var lambddaNoVarComment = function (a, b) { return a * b; }; lambdaFoo(10, 20); diff --git a/tests/baselines/reference/commentsModules.js b/tests/baselines/reference/commentsModules.js index d59e2d1f235..962ce4e7004 100644 --- a/tests/baselines/reference/commentsModules.js +++ b/tests/baselines/reference/commentsModules.js @@ -100,6 +100,7 @@ new m7.m8.m9.c(); //// [commentsModules.js] var m1; (function (m1) { + /** b's comment*/ m1.b; function foo() { return m1.b; @@ -112,6 +113,7 @@ var m1; })(); m2.c = c; ; + /** i*/ m2.i = new c(); })(m1.m2 || (m1.m2 = {})); var m2 = m1.m2; diff --git a/tests/baselines/reference/commentsOnReturnStatement1.js b/tests/baselines/reference/commentsOnReturnStatement1.js index a29cab364c4..def2cd18d55 100644 --- a/tests/baselines/reference/commentsOnReturnStatement1.js +++ b/tests/baselines/reference/commentsOnReturnStatement1.js @@ -14,6 +14,7 @@ var DebugClass = (function () { function DebugClass() { } DebugClass.debugFunc = function () { + // Start Debugger Test Code var i = 0; return true; }; diff --git a/tests/baselines/reference/commentsVarDecl.js b/tests/baselines/reference/commentsVarDecl.js index f6974c1e0e1..6c65a56f7ae 100644 --- a/tests/baselines/reference/commentsVarDecl.js +++ b/tests/baselines/reference/commentsVarDecl.js @@ -44,15 +44,28 @@ var n4: (x: number) => string; n4 = z2; //// [commentsVarDecl.js] +/** Variable comments*/ var myVariable = 10; +/** This is another variable comment*/ var anotherVariable = 30; +// shouldn't appear var aVar = ""; +/** this is multiline comment + * All these variables are of number type */ var anotherAnotherVariable = 70; +/** Triple slash multiline comment*/ +/** another line in the comment*/ +/** comment line 2*/ var x = 70; x = myVariable; +/** triple slash comment1*/ +/** jsdocstyle comment - only this comment should be in .d.ts file*/ var n = 30; +/** var deckaration with comment on type as well*/ var y = 20; +/// var deckaration with comment on type as well var yy = 20; +/** comment2 */ var z = function (x, y) { return x + y; }; var z2; var x2 = z2; diff --git a/tests/baselines/reference/commentsVariableStatement1.js b/tests/baselines/reference/commentsVariableStatement1.js index e1aaf952812..8dfbd16c68a 100644 --- a/tests/baselines/reference/commentsVariableStatement1.js +++ b/tests/baselines/reference/commentsVariableStatement1.js @@ -4,6 +4,7 @@ var v = 1; //// [commentsVariableStatement1.js] +/** Comment */ var v = 1; diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index fa1cc4c4d12..de6d954bf6d 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -89,9 +89,11 @@ declare var x; //// [commentsdoNotEmitComments.js] +/** Variable comments*/ var myVariable = 10; function foo(p) { } +/** variable with function type comment*/ var fooVar; foo(50); fooVar(); @@ -117,7 +119,9 @@ var c = (function () { }; return c; })(); +/**instance comment*/ var i = new c(); +/**interface instance comments*/ var i1_i; var m1; (function (m1) { diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments.js index e7a0d82db00..856d9ea13ee 100644 --- a/tests/baselines/reference/commentsemitComments.js +++ b/tests/baselines/reference/commentsemitComments.js @@ -89,9 +89,11 @@ declare var x; //// [commentsemitComments.js] +/** Variable comments*/ var myVariable = 10; function foo(p) { } +/** variable with function type comment*/ var fooVar; foo(50); fooVar(); @@ -117,7 +119,9 @@ var c = (function () { }; return c; })(); +/**instance comment*/ var i = new c(); +/**interface instance comments*/ var i1_i; var m1; (function (m1) { diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index a0009c55463..4bdb1e38ba7 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -253,6 +253,7 @@ var b5; var b6; var base1; var base2; +// operator < var r1a1 = a1 < b1; var r1a2 = base1 < base2; var r1a3 = a2 < b2; @@ -267,6 +268,7 @@ var r1b4 = b3 < a3; var r1b5 = b4 < a4; var r1b6 = b5 < a5; var r1b7 = b6 < a6; +// operator > var r2a1 = a1 > b1; var r2a2 = base1 > base2; var r2a3 = a2 > b2; @@ -281,6 +283,7 @@ var r2b4 = b3 > a3; var r2b5 = b4 > a4; var r2b6 = b5 > a5; var r2b7 = b6 > a6; +// operator <= var r3a1 = a1 <= b1; var r3a2 = base1 <= base2; var r3a3 = a2 <= b2; @@ -295,6 +298,7 @@ var r3b4 = b3 <= a3; var r3b5 = b4 <= a4; var r3b6 = b5 <= a5; var r3b7 = b6 <= a6; +// operator >= var r4a1 = a1 >= b1; var r4a2 = base1 >= base2; var r4a3 = a2 >= b2; @@ -309,6 +313,7 @@ var r4b4 = b3 >= a3; var r4b5 = b4 >= a4; var r4b6 = b5 >= a5; var r4b7 = b6 >= a6; +// operator == var r5a1 = a1 == b1; var r5a2 = base1 == base2; var r5a3 = a2 == b2; @@ -323,6 +328,7 @@ var r5b4 = b3 == a3; var r5b5 = b4 == a4; var r5b6 = b5 == a5; var r5b7 = b6 == a6; +// operator != var r6a1 = a1 != b1; var r6a2 = base1 != base2; var r6a3 = a2 != b2; @@ -337,6 +343,7 @@ var r6b4 = b3 != a3; var r6b5 = b4 != a4; var r6b6 = b5 != a5; var r6b7 = b6 != a6; +// operator === var r7a1 = a1 === b1; var r7a2 = base1 === base2; var r7a3 = a2 === b2; @@ -351,6 +358,7 @@ var r7b4 = b3 === a3; var r7b5 = b4 === a4; var r7b6 = b5 === a5; var r7b7 = b6 === a6; +// operator !== var r8a1 = a1 !== b1; var r8a2 = base1 !== base2; var r8a3 = a2 !== b2; diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js index c5d64ff5f55..ad547ea769b 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.js @@ -91,6 +91,7 @@ var b; var c; var d; var e; +// operator < var ra1 = a < a; var ra2 = b < b; var ra3 = c < c; @@ -98,6 +99,7 @@ var ra4 = d < d; var ra5 = e < e; var ra6 = null < null; var ra7 = undefined < undefined; +// operator > var rb1 = a > a; var rb2 = b > b; var rb3 = c > c; @@ -105,6 +107,7 @@ var rb4 = d > d; var rb5 = e > e; var rb6 = null > null; var rb7 = undefined > undefined; +// operator <= var rc1 = a <= a; var rc2 = b <= b; var rc3 = c <= c; @@ -112,6 +115,7 @@ var rc4 = d <= d; var rc5 = e <= e; var rc6 = null <= null; var rc7 = undefined <= undefined; +// operator >= var rd1 = a >= a; var rd2 = b >= b; var rd3 = c >= c; @@ -119,6 +123,7 @@ var rd4 = d >= d; var rd5 = e >= e; var rd6 = null >= null; var rd7 = undefined >= undefined; +// operator == var re1 = a == a; var re2 = b == b; var re3 = c == c; @@ -126,6 +131,7 @@ var re4 = d == d; var re5 = e == e; var re6 = null == null; var re7 = undefined == undefined; +// operator != var rf1 = a != a; var rf2 = b != b; var rf3 = c != c; @@ -133,6 +139,7 @@ var rf4 = d != d; var rf5 = e != e; var rf6 = null != null; var rf7 = undefined != undefined; +// operator === var rg1 = a === a; var rg2 = b === b; var rg3 = c === c; @@ -140,6 +147,7 @@ var rg4 = d === d; var rg5 = e === e; var rg6 = null === null; var rg7 = undefined === undefined; +// operator !== var rh1 = a !== a; var rh2 = b !== b; var rh3 = c !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js index 3258d2a25c8..10250785642 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js @@ -206,6 +206,7 @@ var a6; var b6; var a7; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -220,6 +221,7 @@ var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -234,6 +236,7 @@ var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -248,6 +251,7 @@ var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -262,6 +266,7 @@ var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -276,6 +281,7 @@ var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -290,6 +296,7 @@ var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -304,6 +311,7 @@ var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js index fc5ea7b40b9..6235eb4b4d9 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js @@ -206,6 +206,7 @@ var a6; var b6; var a7; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -220,6 +221,7 @@ var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -234,6 +236,7 @@ var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -248,6 +251,7 @@ var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -262,6 +266,7 @@ var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -276,6 +281,7 @@ var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -290,6 +296,7 @@ var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -304,6 +311,7 @@ var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js index d5ace469bd2..43ae21c3b03 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js @@ -143,6 +143,7 @@ var a3; var b3; var a4; var b4; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -151,6 +152,7 @@ var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -159,6 +161,7 @@ var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -167,6 +170,7 @@ var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -175,6 +179,7 @@ var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -183,6 +188,7 @@ var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -191,6 +197,7 @@ var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -199,6 +206,7 @@ var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js index 8ba98b249d0..83adba638a6 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js @@ -185,6 +185,7 @@ var a5; var b5; var a6; var b6; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -197,6 +198,7 @@ var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -209,6 +211,7 @@ var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -221,6 +224,7 @@ var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -233,6 +237,7 @@ var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -245,6 +250,7 @@ var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -257,6 +263,7 @@ var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -269,6 +276,7 @@ var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js index 6abddb35323..a5a52dccf83 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js @@ -185,6 +185,7 @@ var a5; var b5; var a6; var b6; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -197,6 +198,7 @@ var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -209,6 +211,7 @@ var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -221,6 +224,7 @@ var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -233,6 +237,7 @@ var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -245,6 +250,7 @@ var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -257,6 +263,7 @@ var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -269,6 +276,7 @@ var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js index 2c48a4fe733..ae11af97afc 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js @@ -45,19 +45,27 @@ var rh2 = b !== a; //// [comparisonOperatorWithNoRelationshipObjectsOnOptionalProperty.js] var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; +// operator > var rb1 = a > b; var rb2 = b > a; +// operator <= var rc1 = a <= b; var rc2 = b <= a; +// operator >= var rd1 = a >= b; var rd2 = b >= a; +// operator == var re1 = a == b; var re2 = b == a; +// operator != var rf1 = a != b; var rf2 = b != a; +// operator === var rg1 = a === b; var rg2 = b === a; +// operator !== var rh1 = a !== b; var rh2 = b !== a; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js index 1eb7ac188d1..d6308211191 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js @@ -101,34 +101,42 @@ var a1; var b1; var a2; var b2; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1b1 = b1 < a1; var r1b2 = b2 < a2; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2b1 = b1 > a1; var r2b2 = b2 > a2; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5b1 = b1 == a1; var r5b2 = b2 == a2; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6b1 = b1 != a1; var r6b2 = b2 != a2; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7b1 = b1 === a1; var r7b2 = b2 === a2; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8b1 = b1 !== a1; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js index 2220793ed2c..5c6e863b900 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipPrimitiveType.js @@ -227,6 +227,7 @@ var b; var c; var d; var e; +// operator < var r1a1 = a < b; var r1a1 = a < c; var r1a1 = a < d; @@ -247,6 +248,7 @@ var r1e1 = e < a; var r1e1 = e < b; var r1e1 = e < c; var r1e1 = e < d; +// operator > var r2a1 = a > b; var r2a1 = a > c; var r2a1 = a > d; @@ -267,6 +269,7 @@ var r2e1 = e > a; var r2e1 = e > b; var r2e1 = e > c; var r2e1 = e > d; +// operator <= var r3a1 = a <= b; var r3a1 = a <= c; var r3a1 = a <= d; @@ -287,6 +290,7 @@ var r3e1 = e <= a; var r3e1 = e <= b; var r3e1 = e <= c; var r3e1 = e <= d; +// operator >= var r4a1 = a >= b; var r4a1 = a >= c; var r4a1 = a >= d; @@ -307,6 +311,7 @@ var r4e1 = e >= a; var r4e1 = e >= b; var r4e1 = e >= c; var r4e1 = e >= d; +// operator == var r5a1 = a == b; var r5a1 = a == c; var r5a1 = a == d; @@ -327,6 +332,7 @@ var r5e1 = e == a; var r5e1 = e == b; var r5e1 = e == c; var r5e1 = e == d; +// operator != var r6a1 = a != b; var r6a1 = a != c; var r6a1 = a != d; @@ -347,6 +353,7 @@ var r6e1 = e != a; var r6e1 = e != b; var r6e1 = e != c; var r6e1 = e != d; +// operator === var r7a1 = a === b; var r7a1 = a === c; var r7a1 = a === d; @@ -367,6 +374,7 @@ var r7e1 = e === a; var r7e1 = e === b; var r7e1 = e === c; var r7e1 = e === d; +// operator !== var r8a1 = a !== b; var r8a1 = a !== c; var r8a1 = a !== d; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js index 316bb0e4971..7042a841502 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipTypeParameter.js @@ -179,6 +179,7 @@ function foo(t, u) { var r6 = t != u; var r7 = t === u; var r8 = t !== u; + // operator < var r1a1 = t < a; var r1a2 = t < b; var r1a3 = t < c; @@ -193,6 +194,7 @@ function foo(t, u) { var r1b5 = e < t; var r1b6 = f < t; var r1b7 = g < t; + // operator > var r2a1 = t < a; var r2a2 = t < b; var r2a3 = t < c; @@ -207,6 +209,7 @@ function foo(t, u) { var r2b5 = e < t; var r2b6 = f < t; var r2b7 = g < t; + // operator <= var r3a1 = t < a; var r3a2 = t < b; var r3a3 = t < c; @@ -221,6 +224,7 @@ function foo(t, u) { var r3b5 = e < t; var r3b6 = f < t; var r3b7 = g < t; + // operator >= var r4a1 = t < a; var r4a2 = t < b; var r4a3 = t < c; @@ -235,6 +239,7 @@ function foo(t, u) { var r4b5 = e < t; var r4b6 = f < t; var r4b7 = g < t; + // operator == var r5a1 = t < a; var r5a2 = t < b; var r5a3 = t < c; @@ -249,6 +254,7 @@ function foo(t, u) { var r5b5 = e < t; var r5b6 = f < t; var r5b7 = g < t; + // operator != var r6a1 = t < a; var r6a2 = t < b; var r6a3 = t < c; @@ -263,6 +269,7 @@ function foo(t, u) { var r6b5 = e < t; var r6b6 = f < t; var r6b7 = g < t; + // operator === var r7a1 = t < a; var r7a2 = t < b; var r7a3 = t < c; @@ -277,6 +284,7 @@ function foo(t, u) { var r7b5 = e < t; var r7b6 = f < t; var r7b7 = g < t; + // operator !== var r8a1 = t < a; var r8a2 = t < b; var r8a3 = t < c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js index 24fc1b16b8a..9a52b04b548 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.js @@ -200,6 +200,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = x < a; var r1a2 = x < b; var r1a3 = x < c; @@ -214,6 +215,7 @@ var r1b4 = d < x; var r1b5 = e < x; var r1b6 = f < x; var r1b7 = g < x; +// operator > var r2a1 = x > a; var r2a2 = x > b; var r2a3 = x > c; @@ -228,6 +230,7 @@ var r2b4 = d > x; var r2b5 = e > x; var r2b6 = f > x; var r2b7 = g > x; +// operator <= var r3a1 = x <= a; var r3a2 = x <= b; var r3a3 = x <= c; @@ -242,6 +245,7 @@ var r3b4 = d <= x; var r3b5 = e <= x; var r3b6 = f <= x; var r3b7 = g <= x; +// operator >= var r4a1 = x >= a; var r4a2 = x >= b; var r4a3 = x >= c; @@ -256,6 +260,7 @@ var r4b4 = d >= x; var r4b5 = e >= x; var r4b6 = f >= x; var r4b7 = g >= x; +// operator == var r5a1 = x == a; var r5a2 = x == b; var r5a3 = x == c; @@ -270,6 +275,7 @@ var r5b4 = d == x; var r5b5 = e == x; var r5b6 = f == x; var r5b7 = g == x; +// operator != var r6a1 = x != a; var r6a2 = x != b; var r6a3 = x != c; @@ -284,6 +290,7 @@ var r6b4 = d != x; var r6b5 = e != x; var r6b6 = f != x; var r6b7 = g != x; +// operator === var r7a1 = x === a; var r7a2 = x === b; var r7a3 = x === c; @@ -298,6 +305,7 @@ var r7b4 = d === x; var r7b5 = e === x; var r7b6 = f === x; var r7b7 = g === x; +// operator !== var r8a1 = x !== a; var r8a2 = x !== b; var r8a3 = x !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js index 88d2ef48b1d..32ec46fe52c 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.js @@ -197,6 +197,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = null < a; var r1a2 = null < b; var r1a3 = null < c; @@ -211,6 +212,7 @@ var r1b4 = d < null; var r1b5 = e < null; var r1b6 = f < null; var r1b7 = g < null; +// operator > var r2a1 = null > a; var r2a2 = null > b; var r2a3 = null > c; @@ -225,6 +227,7 @@ var r2b4 = d > null; var r2b5 = e > null; var r2b6 = f > null; var r2b7 = g > null; +// operator <= var r3a1 = null <= a; var r3a2 = null <= b; var r3a3 = null <= c; @@ -239,6 +242,7 @@ var r3b4 = d <= null; var r3b5 = e <= null; var r3b6 = f <= null; var r3b7 = g <= null; +// operator >= var r4a1 = null >= a; var r4a2 = null >= b; var r4a3 = null >= c; @@ -253,6 +257,7 @@ var r4b4 = d >= null; var r4b5 = e >= null; var r4b6 = f >= null; var r4b7 = g >= null; +// operator == var r5a1 = null == a; var r5a2 = null == b; var r5a3 = null == c; @@ -267,6 +272,7 @@ var r5b4 = d == null; var r5b5 = e == null; var r5b6 = f == null; var r5b7 = g == null; +// operator != var r6a1 = null != a; var r6a2 = null != b; var r6a3 = null != c; @@ -281,6 +287,7 @@ var r6b4 = d != null; var r6b5 = e != null; var r6b6 = f != null; var r6b7 = g != null; +// operator === var r7a1 = null === a; var r7a2 = null === b; var r7a3 = null === c; @@ -295,6 +302,7 @@ var r7b4 = d === null; var r7b5 = e === null; var r7b6 = f === null; var r7b7 = g === null; +// operator !== var r8a1 = null !== a; var r8a2 = null !== b; var r8a3 = null !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js index 1faffebbc60..9ec4c9ce122 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.js @@ -200,6 +200,7 @@ var d; var e; var f; var g; +// operator < var r1a1 = x < a; var r1a2 = x < b; var r1a3 = x < c; @@ -214,6 +215,7 @@ var r1b4 = d < x; var r1b5 = e < x; var r1b6 = f < x; var r1b7 = g < x; +// operator > var r2a1 = x > a; var r2a2 = x > b; var r2a3 = x > c; @@ -228,6 +230,7 @@ var r2b4 = d > x; var r2b5 = e > x; var r2b6 = f > x; var r2b7 = g > x; +// operator <= var r3a1 = x <= a; var r3a2 = x <= b; var r3a3 = x <= c; @@ -242,6 +245,7 @@ var r3b4 = d <= x; var r3b5 = e <= x; var r3b6 = f <= x; var r3b7 = g <= x; +// operator >= var r4a1 = x >= a; var r4a2 = x >= b; var r4a3 = x >= c; @@ -256,6 +260,7 @@ var r4b4 = d >= x; var r4b5 = e >= x; var r4b6 = f >= x; var r4b7 = g >= x; +// operator == var r5a1 = x == a; var r5a2 = x == b; var r5a3 = x == c; @@ -270,6 +275,7 @@ var r5b4 = d == x; var r5b5 = e == x; var r5b6 = f == x; var r5b7 = g == x; +// operator != var r6a1 = x != a; var r6a2 = x != b; var r6a3 = x != c; @@ -284,6 +290,7 @@ var r6b4 = d != x; var r6b5 = e != x; var r6b6 = f != x; var r6b7 = g != x; +// operator === var r7a1 = x === a; var r7a2 = x === b; var r7a3 = x === c; @@ -298,6 +305,7 @@ var r7b4 = d === x; var r7b5 = e === x; var r7b6 = f === x; var r7b7 = g === x; +// operator !== var r8a1 = x !== a; var r8a2 = x !== b; var r8a3 = x !== c; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js index a2866a7d44f..e0c1f33cb4a 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.js @@ -77,48 +77,56 @@ var E; })(E || (E = {})); var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; var ra3 = 0 /* a */ < b; var ra4 = b < 0 /* a */; var ra5 = 0 /* a */ < 0; var ra6 = 0 < 0 /* a */; +// operator > var rb1 = a > b; var rb2 = b > a; var rb3 = 0 /* a */ > b; var rb4 = b > 0 /* a */; var rb5 = 0 /* a */ > 0; var rb6 = 0 > 0 /* a */; +// operator <= var rc1 = a <= b; var rc2 = b <= a; var rc3 = 0 /* a */ <= b; var rc4 = b <= 0 /* a */; var rc5 = 0 /* a */ <= 0; var rc6 = 0 <= 0 /* a */; +// operator >= var rd1 = a >= b; var rd2 = b >= a; var rd3 = 0 /* a */ >= b; var rd4 = b >= 0 /* a */; var rd5 = 0 /* a */ >= 0; var rd6 = 0 >= 0 /* a */; +// operator == var re1 = a == b; var re2 = b == a; var re3 = 0 /* a */ == b; var re4 = b == 0 /* a */; var re5 = 0 /* a */ == 0; var re6 = 0 == 0 /* a */; +// operator != var rf1 = a != b; var rf2 = b != a; var rf3 = 0 /* a */ != b; var rf4 = b != 0 /* a */; var rf5 = 0 /* a */ != 0; var rf6 = 0 != 0 /* a */; +// operator === var rg1 = a === b; var rg2 = b === a; var rg3 = 0 /* a */ === b; var rg4 = b === 0 /* a */; var rg5 = 0 /* a */ === 0; var rg6 = 0 === 0 /* a */; +// operator !== var rh1 = a !== b; var rh2 = b !== a; var rh3 = 0 /* a */ !== b; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js index 1f6706c3a10..890add6bc8a 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js @@ -300,6 +300,9 @@ var a10; var b10; var a11; var b11; +//var a12: { fn(t: T, u: U): T[] }; +//var b12: { fn(a: A, b: B): A[] }; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -311,6 +314,7 @@ var r1a8 = a8 < b8; var r1a9 = a9 < b9; var r1a10 = a10 < b10; var r1a11 = a11 < b11; +//var r1a12 = a12 < b12; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; @@ -322,6 +326,8 @@ var r1b8 = b8 < a8; var r1b9 = b9 < a9; var r1b10 = b10 < a10; var r1b11 = b11 < a11; +//var r1b12 = b12 < a12; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -333,6 +339,7 @@ var r2a8 = a8 > b8; var r2a9 = a9 > b9; var r2a10 = a10 > b10; var r2a11 = a11 > b11; +//var r2a12 = a12 > b12; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; @@ -344,6 +351,8 @@ var r2b8 = b8 > a8; var r2b9 = b9 > a9; var r2b10 = b10 > a10; var r2b11 = b11 > a11; +//var r2b12 = b12 > a12; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -355,6 +364,7 @@ var r3a8 = a8 <= b8; var r3a9 = a9 <= b9; var r3a10 = a10 <= b10; var r3a11 = a11 <= b11; +//var r3a12 = a12 <= b12; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; @@ -366,6 +376,8 @@ var r3b8 = b8 <= a8; var r3b9 = b9 <= a9; var r3b10 = b10 <= a10; var r3b11 = b11 <= a11; +//var r3b12 = b12 <= a12; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -377,6 +389,7 @@ var r4a8 = a8 >= b8; var r4a9 = a9 >= b9; var r4a10 = a10 >= b10; var r4a11 = a11 >= b11; +//var r4a12 = a12 >= b12; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; @@ -388,6 +401,8 @@ var r4b8 = b8 >= a8; var r4b9 = b9 >= a9; var r4b10 = b10 >= a10; var r4b11 = b11 >= a11; +//var r4b12 = b12 >= a12; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -399,6 +414,7 @@ var r5a8 = a8 == b8; var r5a9 = a9 == b9; var r5a10 = a10 == b10; var r5a11 = a11 == b11; +//var r5a12 = a12 == b12; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; @@ -410,6 +426,8 @@ var r5b8 = b8 == a8; var r5b9 = b9 == a9; var r5b10 = b10 == a10; var r5b11 = b11 == a11; +//var r5b12 = b12 == a12; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -421,6 +439,7 @@ var r6a8 = a8 != b8; var r6a9 = a9 != b9; var r6a10 = a10 != b10; var r6a11 = a11 != b11; +//var r6a12 = a12 != b12; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; @@ -432,6 +451,8 @@ var r6b8 = b8 != a8; var r6b9 = b9 != a9; var r6b10 = b10 != a10; var r6b11 = b11 != a11; +//var r6b12 = b12 != a12; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -443,6 +464,7 @@ var r7a8 = a8 === b8; var r7a9 = a9 === b9; var r7a10 = a10 === b10; var r7a11 = a11 === b11; +//var r7a12 = a12 === b12; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; @@ -454,6 +476,8 @@ var r7b8 = b8 === a8; var r7b9 = b9 === a9; var r7b10 = b10 === a10; var r7b11 = b11 === a11; +//var r7b12 = b12 === a12; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; @@ -465,6 +489,7 @@ var r8a8 = a8 !== b8; var r8a9 = a9 !== b9; var r8a10 = a10 !== b10; var r8a11 = a11 !== b11; +//var r8a12 = a12 !== b12; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js index df82986e45d..aefeb6d87ff 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js @@ -258,6 +258,9 @@ var a8; var b8; var a9; var b9; +//var a10: { (t: T, u: U): T[] }; +//var b10: { (a: A, b: B): A[] }; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; @@ -267,6 +270,7 @@ var r1a6 = a6 < b6; var r1a7 = a7 < b7; var r1a8 = a8 < b8; var r1a9 = a9 < b9; +//var r1a10 = a10 < b10; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; @@ -276,6 +280,8 @@ var r1b6 = b6 < a6; var r1b7 = b7 < a7; var r1b8 = b8 < a8; var r1b9 = b9 < a9; +//var r1b10 = b10 < a10; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; @@ -285,6 +291,7 @@ var r2a6 = a6 > b6; var r2a7 = a7 > b7; var r2a8 = a8 > b8; var r2a9 = a9 > b9; +//var r2a10 = a10 > b10; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; @@ -294,6 +301,8 @@ var r2b6 = b6 > a6; var r2b7 = b7 > a7; var r2b8 = b8 > a8; var r2b9 = b9 > a9; +//var r2b10 = b10 > a10; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; @@ -303,6 +312,7 @@ var r3a6 = a6 <= b6; var r3a7 = a7 <= b7; var r3a8 = a8 <= b8; var r3a9 = a9 <= b9; +//var r3a10 = a10 <= b10; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; @@ -312,6 +322,8 @@ var r3b6 = b6 <= a6; var r3b7 = b7 <= a7; var r3b8 = b8 <= a8; var r3b9 = b9 <= a9; +//var r3b10 = b10 <= a10; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; @@ -321,6 +333,7 @@ var r4a6 = a6 >= b6; var r4a7 = a7 >= b7; var r4a8 = a8 >= b8; var r4a9 = a9 >= b9; +//var r4a10 = a10 >= b10; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; @@ -330,6 +343,8 @@ var r4b6 = b6 >= a6; var r4b7 = b7 >= a7; var r4b8 = b8 >= a8; var r4b9 = b9 >= a9; +//var r4b10 = b10 >= a10; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; @@ -339,6 +354,7 @@ var r5a6 = a6 == b6; var r5a7 = a7 == b7; var r5a8 = a8 == b8; var r5a9 = a9 == b9; +//var r5a10 = a10 == b10; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; @@ -348,6 +364,8 @@ var r5b6 = b6 == a6; var r5b7 = b7 == a7; var r5b8 = b8 == a8; var r5b9 = b9 == a9; +//var r5b10 = b10 == a10; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; @@ -357,6 +375,7 @@ var r6a6 = a6 != b6; var r6a7 = a7 != b7; var r6a8 = a8 != b8; var r6a9 = a9 != b9; +//var r6a10 = a10 != b10; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; @@ -366,6 +385,8 @@ var r6b6 = b6 != a6; var r6b7 = b7 != a7; var r6b8 = b8 != a8; var r6b9 = b9 != a9; +//var r6b10 = b10 != a10; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; @@ -375,6 +396,7 @@ var r7a6 = a6 === b6; var r7a7 = a7 === b7; var r7a8 = a8 === b8; var r7a9 = a9 === b9; +//var r7a10 = a10 === b10; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; @@ -384,6 +406,8 @@ var r7b6 = b6 === a6; var r7b7 = b7 === a7; var r7b8 = b8 === a8; var r7b9 = b9 === a9; +//var r7b10 = b10 === a10; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; @@ -393,6 +417,7 @@ var r8a6 = a6 !== b6; var r8a7 = a7 !== b7; var r8a8 = a8 !== b8; var r8a9 = a9 !== b9; +//var r8a10 = a10 !== b10; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js index c6c785266a0..ec152ef0da5 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js @@ -134,6 +134,7 @@ var a3; var b3; var a4; var b4; +// operator < var r1a1 = a1 < b1; var r1a1 = a2 < b2; var r1a1 = a3 < b3; @@ -142,6 +143,7 @@ var r1b1 = b1 < a1; var r1b1 = b2 < a2; var r1b1 = b3 < a3; var r1b1 = b4 < a4; +// operator > var r2a1 = a1 > b1; var r2a1 = a2 > b2; var r2a1 = a3 > b3; @@ -150,6 +152,7 @@ var r2b1 = b1 > a1; var r2b1 = b2 > a2; var r2b1 = b3 > a3; var r2b1 = b4 > a4; +// operator <= var r3a1 = a1 <= b1; var r3a1 = a2 <= b2; var r3a1 = a3 <= b3; @@ -158,6 +161,7 @@ var r3b1 = b1 <= a1; var r3b1 = b2 <= a2; var r3b1 = b3 <= a3; var r3b1 = b4 <= a4; +// operator >= var r4a1 = a1 >= b1; var r4a1 = a2 >= b2; var r4a1 = a3 >= b3; @@ -166,6 +170,7 @@ var r4b1 = b1 >= a1; var r4b1 = b2 >= a2; var r4b1 = b3 >= a3; var r4b1 = b4 >= a4; +// operator == var r5a1 = a1 == b1; var r5a1 = a2 == b2; var r5a1 = a3 == b3; @@ -174,6 +179,7 @@ var r5b1 = b1 == a1; var r5b1 = b2 == a2; var r5b1 = b3 == a3; var r5b1 = b4 == a4; +// operator != var r6a1 = a1 != b1; var r6a1 = a2 != b2; var r6a1 = a3 != b3; @@ -182,6 +188,7 @@ var r6b1 = b1 != a1; var r6b1 = b2 != a2; var r6b1 = b3 != a3; var r6b1 = b4 != a4; +// operator === var r7a1 = a1 === b1; var r7a1 = a2 === b2; var r7a1 = a3 === b3; @@ -190,6 +197,7 @@ var r7b1 = b1 === a1; var r7b1 = b2 === a2; var r7b1 = b3 === a3; var r7b1 = b4 === a4; +// operator !== var r8a1 = a1 !== b1; var r8a1 = a2 !== b2; var r8a1 = a3 !== b3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js index 67a33f10a15..1a83da3e663 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js @@ -195,97 +195,121 @@ var a5; var b5; var a6; var b6; +//var a7: { fn(x: T, y: U): T }; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; var r1a4 = a4 < b4; var r1a5 = a5 < b5; var r1a6 = a6 < b6; +//var r1a7 = a7 < b7; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +//var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; var r2a4 = a4 > b4; var r2a5 = a5 > b5; var r2a6 = a6 > b6; +//var r2a7 = a7 > b7; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +//var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; var r3a4 = a4 <= b4; var r3a5 = a5 <= b5; var r3a6 = a6 <= b6; +//var r3a7 = a7 <= b7; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +//var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; var r4a4 = a4 >= b4; var r4a5 = a5 >= b5; var r4a6 = a6 >= b6; +//var r4a7 = a7 >= b7; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +//var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; var r5a4 = a4 == b4; var r5a5 = a5 == b5; var r5a6 = a6 == b6; +//var r5a7 = a7 == b7; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +//var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; var r6a4 = a4 != b4; var r6a5 = a5 != b5; var r6a6 = a6 != b6; +//var r6a7 = a7 != b7; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +//var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; var r7a4 = a4 === b4; var r7a5 = a5 === b5; var r7a6 = a6 === b6; +//var r7a7 = a7 === b7; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +//var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; var r8a4 = a4 !== b4; var r8a5 = a5 !== b5; var r8a6 = a6 !== b6; +//var r8a7 = a7 !== b7; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js index c47ec3bc05f..393a2485c47 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js @@ -195,97 +195,121 @@ var a5; var b5; var a6; var b6; +//var a7: { new (x: T, y: U): T }; var b7; +// operator < var r1a1 = a1 < b1; var r1a2 = a2 < b2; var r1a3 = a3 < b3; var r1a4 = a4 < b4; var r1a5 = a5 < b5; var r1a6 = a6 < b6; +//var r1a7 = a7 < b7; var r1b1 = b1 < a1; var r1b2 = b2 < a2; var r1b3 = b3 < a3; var r1b4 = b4 < a4; var r1b5 = b5 < a5; var r1b6 = b6 < a6; +//var r1b7 = b7 < a7; +// operator > var r2a1 = a1 > b1; var r2a2 = a2 > b2; var r2a3 = a3 > b3; var r2a4 = a4 > b4; var r2a5 = a5 > b5; var r2a6 = a6 > b6; +//var r2a7 = a7 > b7; var r2b1 = b1 > a1; var r2b2 = b2 > a2; var r2b3 = b3 > a3; var r2b4 = b4 > a4; var r2b5 = b5 > a5; var r2b6 = b6 > a6; +//var r2b7 = b7 > a7; +// operator <= var r3a1 = a1 <= b1; var r3a2 = a2 <= b2; var r3a3 = a3 <= b3; var r3a4 = a4 <= b4; var r3a5 = a5 <= b5; var r3a6 = a6 <= b6; +//var r3a7 = a7 <= b7; var r3b1 = b1 <= a1; var r3b2 = b2 <= a2; var r3b3 = b3 <= a3; var r3b4 = b4 <= a4; var r3b5 = b5 <= a5; var r3b6 = b6 <= a6; +//var r3b7 = b7 <= a7; +// operator >= var r4a1 = a1 >= b1; var r4a2 = a2 >= b2; var r4a3 = a3 >= b3; var r4a4 = a4 >= b4; var r4a5 = a5 >= b5; var r4a6 = a6 >= b6; +//var r4a7 = a7 >= b7; var r4b1 = b1 >= a1; var r4b2 = b2 >= a2; var r4b3 = b3 >= a3; var r4b4 = b4 >= a4; var r4b5 = b5 >= a5; var r4b6 = b6 >= a6; +//var r4b7 = b7 >= a7; +// operator == var r5a1 = a1 == b1; var r5a2 = a2 == b2; var r5a3 = a3 == b3; var r5a4 = a4 == b4; var r5a5 = a5 == b5; var r5a6 = a6 == b6; +//var r5a7 = a7 == b7; var r5b1 = b1 == a1; var r5b2 = b2 == a2; var r5b3 = b3 == a3; var r5b4 = b4 == a4; var r5b5 = b5 == a5; var r5b6 = b6 == a6; +//var r5b7 = b7 == a7; +// operator != var r6a1 = a1 != b1; var r6a2 = a2 != b2; var r6a3 = a3 != b3; var r6a4 = a4 != b4; var r6a5 = a5 != b5; var r6a6 = a6 != b6; +//var r6a7 = a7 != b7; var r6b1 = b1 != a1; var r6b2 = b2 != a2; var r6b3 = b3 != a3; var r6b4 = b4 != a4; var r6b5 = b5 != a5; var r6b6 = b6 != a6; +//var r6b7 = b7 != a7; +// operator === var r7a1 = a1 === b1; var r7a2 = a2 === b2; var r7a3 = a3 === b3; var r7a4 = a4 === b4; var r7a5 = a5 === b5; var r7a6 = a6 === b6; +//var r7a7 = a7 === b7; var r7b1 = b1 === a1; var r7b2 = b2 === a2; var r7b3 = b3 === a3; var r7b4 = b4 === a4; var r7b5 = b5 === a5; var r7b6 = b6 === a6; +//var r7b7 = b7 === a7; +// operator !== var r8a1 = a1 !== b1; var r8a2 = a2 !== b2; var r8a3 = a3 !== b3; var r8a4 = a4 !== b4; var r8a5 = a5 !== b5; var r8a6 = a6 !== b6; +//var r8a7 = a7 !== b7; var r8b1 = b1 !== a1; var r8b2 = b2 !== a2; var r8b3 = b3 !== a3; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js index 570c6faf123..1a370b17d19 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.js @@ -46,19 +46,27 @@ var rh2 = b !== a; //// [comparisonOperatorWithSubtypeObjectOnOptionalProperty.js] var a; var b; +// operator < var ra1 = a < b; var ra2 = b < a; +// operator > var rb1 = a > b; var rb2 = b > a; +// operator <= var rc1 = a <= b; var rc2 = b <= a; +// operator >= var rd1 = a >= b; var rd2 = b >= a; +// operator == var re1 = a == b; var re2 = b == a; +// operator != var rf1 = a != b; var rf2 = b != a; +// operator === var rg1 = a === b; var rg2 = b === a; +// operator !== var rh1 = a !== b; var rh2 = b !== a; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js index 0dfe4cf330a..99c64617531 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js @@ -123,34 +123,42 @@ var a1; var a2; var b1; var b2; +// operator < var ra1 = a1 < b1; var ra2 = a2 < b2; var ra3 = b1 < a1; var ra4 = b2 < a2; +// operator > var rb1 = a1 > b1; var rb2 = a2 > b2; var rb3 = b1 > a1; var rb4 = b2 > a2; +// operator <= var rc1 = a1 <= b1; var rc2 = a2 <= b2; var rc3 = b1 <= a1; var rc4 = b2 <= a2; +// operator >= var rd1 = a1 >= b1; var rd2 = a2 >= b2; var rd3 = b1 >= a1; var rd4 = b2 >= a2; +// operator == var re1 = a1 == b1; var re2 = a2 == b2; var re3 = b1 == a1; var re4 = b2 == a2; +// operator != var rf1 = a1 != b1; var rf2 = a2 != b2; var rf3 = b1 != a1; var rf4 = b2 != a2; +// operator === var rg1 = a1 === b1; var rg2 = a2 === b2; var rg3 = b1 === a1; var rg4 = b2 === a2; +// operator !== var rh1 = a1 !== b1; var rh2 = a2 !== b2; var rh3 = b1 !== a1; diff --git a/tests/baselines/reference/comparisonOperatorWithTypeParameter.js b/tests/baselines/reference/comparisonOperatorWithTypeParameter.js index 814fb5c6aa7..67d33eca223 100644 --- a/tests/baselines/reference/comparisonOperatorWithTypeParameter.js +++ b/tests/baselines/reference/comparisonOperatorWithTypeParameter.js @@ -82,6 +82,7 @@ function foo(t: T, u: U, v: V) { var a; var b; function foo(t, u, v) { + // errors var ra1 = t < u; var ra2 = t > u; var ra3 = t <= u; @@ -114,6 +115,7 @@ function foo(t, u, v) { var rd6 = v != t; var rd7 = v === t; var rd8 = v !== t; + // ok var re1 = t < a; var re2 = t > a; var re3 = t <= a; diff --git a/tests/baselines/reference/compoundAssignmentLHSIsReference.js b/tests/baselines/reference/compoundAssignmentLHSIsReference.js index ebc3d7be118..c583a37ac49 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsReference.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsReference.js @@ -36,6 +36,7 @@ function fn2(x4: number) { //// [compoundAssignmentLHSIsReference.js] var value; +// identifiers: variable and parameter var x1; x1 *= value; x1 += value; @@ -43,6 +44,7 @@ function fn1(x2) { x2 *= value; x2 += value; } +// property accesses var x3; x3.a *= value; x3.a += value; diff --git a/tests/baselines/reference/concatError.js b/tests/baselines/reference/concatError.js index 3a7613484c5..96af4af53a0 100644 --- a/tests/baselines/reference/concatError.js +++ b/tests/baselines/reference/concatError.js @@ -34,6 +34,12 @@ c = c.m(cc); //// [concatError.js] var n1; +/* +interface Array { + concat(...items: T[][]): T[]; // Note: This overload needs to be picked for arrays of arrays, even though both are applicable + concat(...items: T[]): T[]; +} +*/ var fa; fa = fa.concat([0]); fa = fa.concat(0); diff --git a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js index 2f279100954..5d87aac88fd 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.js @@ -56,6 +56,7 @@ var resultIsObject3 = true || false ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsBooleanType.js] +//Cond ? Expr1 : Expr2, Cond is of boolean type, Expr1 and Expr2 have the same type var condBoolean; var exprAny1; var exprBoolean1; @@ -82,6 +83,7 @@ typeof "123" == "string" ? exprBoolean1 : exprBoolean2; 2 > 1 ? exprNumber1 : exprNumber2; null === undefined ? exprString1 : exprString2; true || false ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condBoolean ? exprAny1 : exprAny2; var resultIsBoolean1 = condBoolean ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condBoolean ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js index 37ee498784b..c6ce80f8063 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.js @@ -59,6 +59,7 @@ var resultIsObject3 = foo() / array[1] ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsNumberType.js] +//Cond ? Expr1 : Expr2, Cond is of number type, Expr1 and Expr2 have the same type var condNumber; var exprAny1; var exprBoolean1; @@ -90,6 +91,7 @@ var array = [1, 2, 3]; "string".length ? exprNumber1 : exprNumber2; foo() ? exprString1 : exprString2; foo() / array[1] ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condNumber ? exprAny1 : exprAny2; var resultIsBoolean1 = condNumber ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condNumber ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js index f10533a2332..0d4908b939f 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js @@ -59,6 +59,7 @@ var resultIsObject3 = condObject.valueOf() ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditionIsObjectType.js] +//Cond ? Expr1 : Expr2, Cond is of object type, Expr1 and Expr2 have the same type var condObject; var exprAny1; var exprBoolean1; @@ -94,6 +95,7 @@ new Date() ? exprBoolean1 : exprBoolean2; new C() ? exprNumber1 : exprNumber2; C.doIt() ? exprString1 : exprString2; condObject.valueOf() ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condObject ? exprAny1 : exprAny2; var resultIsBoolean1 = condObject ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condObject ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js index 92de4bd4d53..3ed7431399e 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js +++ b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.js @@ -57,6 +57,7 @@ var resultIsObject3 = x.doSomeThing() ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditoinIsAnyType.js] +//Cond ? Expr1 : Expr2, Cond is of any type, Expr1 and Expr2 have the same type var condAny; var x; var exprAny1; @@ -84,6 +85,7 @@ x("x") ? exprBoolean1 : exprBoolean2; x(x) ? exprNumber1 : exprNumber2; x("x") ? exprString1 : exprString2; x.doSomeThing() ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condAny ? exprAny1 : exprAny2; var resultIsBoolean1 = condAny ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condAny ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js index 048787d6061..93873af0d04 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js +++ b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.js @@ -59,6 +59,7 @@ var resultIsObject3 = array[1] ? exprIsObject1 : exprIsObject2; //// [conditionalOperatorConditoinIsStringType.js] +//Cond ? Expr1 : Expr2, Cond is of string type, Expr1 and Expr2 have the same type var condString; var exprAny1; var exprBoolean1; @@ -90,6 +91,7 @@ condString.toUpperCase ? exprBoolean1 : exprBoolean2; condString + "string" ? exprNumber1 : exprNumber2; foo() ? exprString1 : exprString2; array[1] ? exprIsObject1 : exprIsObject2; +//Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condString ? exprAny1 : exprAny2; var resultIsBoolean1 = condString ? exprBoolean1 : exprBoolean2; var resultIsNumber1 = condString ? exprNumber1 : exprNumber2; diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js index f7c6b97c0bb..07217a11e71 100644 --- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js @@ -85,6 +85,7 @@ true ? {} : 1; true ? { a: 1 } : { a: 2, b: 'string' }; var result2 = true ? {} : 1; var result3 = true ? { a: 1 } : { a: 2, b: 'string' }; +//Contextually typed var resultIsX1 = true ? x : a; var result4 = true ? function (m) { return m.propertyX; } : function (n) { return n.propertyA; }; true ? a : x; @@ -93,8 +94,12 @@ true ? 1 : {}; true ? { a: 2, b: 'string' } : { a: 1 }; var result6 = true ? 1 : {}; var result7 = true ? { a: 2, b: 'string' } : { a: 1 }; +//Contextually typed var resultIsX2 = true ? x : a; var result8 = true ? function (m) { return m.propertyA; } : function (n) { return n.propertyX; }; +//Result = Cond ? Expr1 : Expr2, Result is supertype +//Contextually typed var resultIsX3 = true ? a : b; var result10 = true ? function (m) { return m.propertyX1; } : function (n) { return n.propertyX2; }; +//Expr1 and Expr2 are literals var result11 = true ? 1 : 'string'; diff --git a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js index d96b5ec9d1e..7f749179ac0 100644 --- a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js @@ -55,6 +55,7 @@ var a; var b; true ? a : b; var result1 = true ? a : b; +//Be contextually typed and and bct is not identical var result2 = true ? a : b; var result3 = true ? a : b; var result4 = true ? function (m) { return m.propertyX1; } : function (n) { return n.propertyX2; }; diff --git a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js index 73f9d8ceda9..ffb2b3e6657 100644 --- a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js +++ b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js @@ -21,6 +21,10 @@ class D { } //// [constructorParameterShadowsOuterScopes.js] +// Initializer expressions for instance member variables are evaluated in the scope of the class constructor +// body but are not permitted to reference parameters or local variables of the constructor. +// This effectively means that entities from outer scopes by the same name as a constructor parameter or +// local variable are inaccessible in initializer expressions for instance member variables var x = 1; var C = (function () { function C(x) { diff --git a/tests/baselines/reference/contextualSignatureInstantiation2.js b/tests/baselines/reference/contextualSignatureInstantiation2.js index c88467d9fb3..78bc5a88856 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation2.js +++ b/tests/baselines/reference/contextualSignatureInstantiation2.js @@ -6,6 +6,7 @@ var id: (x:T) => T; var r23 = dot(id)(id); //// [contextualSignatureInstantiation2.js] +// dot f g x = f(g(x)) var dot; dot = function (f) { return function (g) { return function (x) { return f(g(x)); }; }; }; var id; diff --git a/tests/baselines/reference/contextualSignatureInstantiation3.js b/tests/baselines/reference/contextualSignatureInstantiation3.js index 44737476482..6db26f49386 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation3.js +++ b/tests/baselines/reference/contextualSignatureInstantiation3.js @@ -34,6 +34,7 @@ function singleton(x) { return [x]; } var xs = [1, 2, 3]; +// Have compiler check that we get the correct types var v1; var v1 = xs.map(identity); var v1 = map(xs, identity); diff --git a/tests/baselines/reference/contextualTyping.js b/tests/baselines/reference/contextualTyping.js index 30a1d614141..36b9a830e02 100644 --- a/tests/baselines/reference/contextualTyping.js +++ b/tests/baselines/reference/contextualTyping.js @@ -232,4 +232,4 @@ var x: B = { }; //// [contextualTyping.js] -var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map \ No newline at end of file +var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map \ No newline at end of file diff --git a/tests/baselines/reference/contextualTyping.js.map b/tests/baselines/reference/contextualTyping.js.map index ec75015e5b0..3e2968b506b 100644 --- a/tests/baselines/reference/contextualTyping.js.map +++ b/tests/baselines/reference/contextualTyping.js.map @@ -1,2 +1,2 @@ //// [contextualTyping.js.map] -{"version":3,"file":"contextualTyping.js","sourceRoot":"","sources":["contextualTyping.ts"],"names":["C1T5","C1T5.constructor","C2T5","C4T5","C4T5.constructor","C5T5","c9t5","C11t5","C11t5.constructor","EF1","Point"],"mapp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{"version":3,"file":"contextualTyping.js","sourceRoot":"","sources":["contextualTyping.ts"],"names":["C1T5","C1T5.constructor","C2T5","C4T5","C4T5.constructor","C5T5","c9t5","C11t5","C11t5.constructor","EF1","Point"],"mappings":"AAaA,IAAM,IAAI;IAAVA,SAAMA,IAAIA;QACNC,QAAGA,GAAqCA,UAASA,CAACA;YAC9C,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAAA;IACLA,CAACA;IAADD,WAACA;AAADA,CAACA,AAJD,IAIC;AAGD,IAAO,IAAI,CAIV;AAJD,WAAO,IAAI,EAAC,CAAC;IACEE,QAAGA,GAAqCA,UAASA,CAACA;QACzD,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,CAAAA;AACLA,CAACA,EAJM,IAAI,KAAJ,IAAI,QAIV;AAGD,AADA,gCAAgC;IAC5B,IAAI,GAA0B,CAAC,UAAS,CAAC;IAAI,MAAM,CAAC,CAAC,CAAA;AAAC,CAAC,CAAC,CAAC;AAC7D,IAAI,IAAI,GAAS,CAAC;IACd,CAAC,EAAE,CAAC;CACP,CAAC,CAAA;AACF,IAAI,IAAI,GAAa,EAAE,CAAC;AACxB,IAAI,IAAI,GAAe;IAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA;AAAC,CAAC,CAAC;AACxD,IAAI,IAAI,GAAwB,UAAS,CAAC;IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA;AAAC,CAAC,CAAC;AAClE,IAAI,IAAI,GAAmC,UAAS,CAAC,EAAE,CAAC;IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA;AAAC,CAAC,CAAC;AAChF,IAAI,IAAI,GAGJ,UAAS,CAAC;IAAI,MAAM,CAAC,CAAC,CAAC;AAAC,CAAC,CAAC;AAE9B,IAAI,IAAI,GAAqC,UAAS,CAAC;IAAI,MAAM,CAAC,CAAC,CAAC;AAAC,CAAC,CAAC;AACvE,IAAI,IAAI,GAAe,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC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,EAAE,EAAE,EAAE;QAChB,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAC;AAIF,IAAI,CAAC,GAAM,EAAG,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/contextualTyping.sourcemap.txt b/tests/baselines/reference/contextualTyping.sourcemap.txt index 7a61448e62a..33d7635922c 100644 --- a/tests/baselines/reference/contextualTyping.sourcemap.txt +++ b/tests/baselines/reference/contextualTyping.sourcemap.txt @@ -8,10 +8,10 @@ sources: contextualTyping.ts emittedFile:tests/cases/compiler/contextualTyping.js sourceFile:contextualTyping.ts ------------------------------------------------------------------- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1 > +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1 > 2 >^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >// DEFAULT INTERFACES >interface IFoo { > n: number; @@ -32,10 +32,10 @@ sourceFile:contextualTyping.ts 2 >Emitted(1, 5) Source(14, 7) + SourceIndex(0) 3 >Emitted(1, 9) Source(14, 11) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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ourceIndex(0) name (C1T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > 2 > foo @@ -61,12 +61,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(3, 30) Source(15, 54) + SourceIndex(0) name (C1T5.constructor) 5 >Emitted(3, 31) Source(15, 55) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -79,10 +79,10 @@ sourceFile:contextualTyping.ts 4 >Emitted(4, 21) Source(16, 17) + SourceIndex(0) 5 >Emitted(4, 22) Source(16, 18) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^ 3 > ^ -4 > ^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } @@ -91,28 +91,28 @@ sourceFile:contextualTyping.ts 2 >Emitted(5, 10) Source(17, 6) + SourceIndex(0) 3 >Emitted(5, 11) Source(17, 6) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 1->Emitted(6, 5) Source(18, 1) + SourceIndex(0) name (C1T5.constructor) 2 >Emitted(6, 6) Source(18, 2) + SourceIndex(0) name (C1T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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itted(7, 16) Source(18, 2) + SourceIndex(0) name (C1T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > @@ -126,11 +126,11 @@ sourceFile:contextualTyping.ts 3 >Emitted(8, 2) Source(14, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(18, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Module property declaration @@ -147,12 +147,12 @@ sourceFile:contextualTyping.ts 3 >Emitted(9, 9) Source(21, 12) + SourceIndex(0) 4 >Emitted(9, 10) Source(25, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^^^ 3 > ^^^^ 4 > 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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >module 3 > C2T5 @@ -164,12 +164,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(10, 18) Source(21, 13) + SourceIndex(0) 5 >Emitted(10, 19) Source(21, 14) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > export var 2 > foo @@ -182,12 +182,12 @@ sourceFile:contextualTyping.ts 4 >Emitted(11, 26) Source(22, 65) + SourceIndex(0) name (C2T5) 5 >Emitted(11, 27) Source(22, 66) + SourceIndex(0) name (C2T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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return @@ -200,10 +200,10 @@ sourceFile:contextualTyping.ts 4 >Emitted(12, 17) Source(23, 17) + SourceIndex(0) 5 >Emitted(12, 18) Source(23, 18) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } @@ -212,14 +212,14 @@ sourceFile:contextualTyping.ts 2 >Emitted(13, 6) Source(24, 6) + SourceIndex(0) 3 >Emitted(13, 7) Source(24, 6) + SourceIndex(0) name (C2T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^^ 4 > ^^^^ 5 > ^^^^^ 6 > ^^^^ 7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} @@ -240,115 +240,124 @@ sourceFile:contextualTyping.ts 6 >Emitted(14, 17) Source(21, 12) + SourceIndex(0) 7 >Emitted(14, 25) Source(25, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Variable declaration > -2 >var -3 > c3t1 -4 > : (s: string) => string = -5 > ( -6 > function( -7 > s +2 > +3 >// CONTEXT: Variable declaration 1->Emitted(15, 1) Source(28, 1) + SourceIndex(0) -2 >Emitted(15, 5) Source(28, 5) + SourceIndex(0) -3 >Emitted(15, 9) Source(28, 9) + SourceIndex(0) -4 >Emitted(15, 12) Source(28, 35) + SourceIndex(0) -5 >Emitted(15, 13) Source(28, 36) + SourceIndex(0) -6 >Emitted(15, 23) Source(28, 45) + SourceIndex(0) -7 >Emitted(15, 24) Source(28, 46) + SourceIndex(0) +2 >Emitted(15, 1) Source(27, 1) + SourceIndex(0) +3 >Emitted(15, 33) Source(27, 33) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^ +3 > ^^^ +4 > ^ +5 > ^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c3t1 +3 > : (s: string) => string = +4 > ( +5 > function( +6 > s +1->Emitted(16, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(16, 9) Source(28, 9) + SourceIndex(0) +3 >Emitted(16, 12) Source(28, 35) + SourceIndex(0) +4 >Emitted(16, 13) Source(28, 36) + SourceIndex(0) +5 >Emitted(16, 23) Source(28, 45) + SourceIndex(0) +6 >Emitted(16, 24) Source(28, 46) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(16, 5) Source(28, 50) + SourceIndex(0) -2 >Emitted(16, 11) Source(28, 56) + SourceIndex(0) -3 >Emitted(16, 12) Source(28, 57) + SourceIndex(0) -4 >Emitted(16, 13) Source(28, 58) + SourceIndex(0) -5 >Emitted(16, 14) Source(28, 58) + SourceIndex(0) +1->Emitted(17, 5) Source(28, 50) + SourceIndex(0) +2 >Emitted(17, 11) Source(28, 56) + SourceIndex(0) +3 >Emitted(17, 12) Source(28, 57) + SourceIndex(0) +4 >Emitted(17, 13) Source(28, 58) + SourceIndex(0) +5 >Emitted(17, 14) Source(28, 58) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(17, 1) Source(28, 59) + SourceIndex(0) -2 >Emitted(17, 2) Source(28, 60) + SourceIndex(0) -3 >Emitted(17, 3) Source(28, 61) + SourceIndex(0) -4 >Emitted(17, 4) Source(28, 62) + SourceIndex(0) +1->Emitted(18, 1) Source(28, 59) + SourceIndex(0) +2 >Emitted(18, 2) Source(28, 60) + SourceIndex(0) +3 >Emitted(18, 3) Source(28, 61) + SourceIndex(0) +4 >Emitted(18, 4) Source(28, 62) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t2 4 > = 5 > ( -1->Emitted(18, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(18, 5) Source(29, 5) + SourceIndex(0) -3 >Emitted(18, 9) Source(29, 9) + SourceIndex(0) -4 >Emitted(18, 12) Source(29, 18) + SourceIndex(0) -5 >Emitted(18, 13) Source(29, 19) + SourceIndex(0) +1->Emitted(19, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(29, 5) + SourceIndex(0) +3 >Emitted(19, 9) Source(29, 9) + SourceIndex(0) +4 >Emitted(19, 12) Source(29, 18) + SourceIndex(0) +5 >Emitted(19, 13) Source(29, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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>Emitted(20, 6) Source(30, 6) + SourceIndex(0) +3 >Emitted(20, 8) Source(30, 8) + SourceIndex(0) +4 >Emitted(20, 9) Source(30, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(20, 2) Source(31, 2) + SourceIndex(0) -2 >Emitted(20, 3) Source(31, 3) + SourceIndex(0) -3 >Emitted(20, 4) Source(31, 3) + SourceIndex(0) +1->Emitted(21, 2) Source(31, 2) + SourceIndex(0) +2 >Emitted(21, 3) Source(31, 3) + SourceIndex(0) +3 >Emitted(21, 4) Source(31, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -356,36 +365,36 @@ sourceFile:contextualTyping.ts 4 > : number[] = 5 > [] 6 > ; -1->Emitted(21, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(32, 5) + SourceIndex(0) -3 >Emitted(21, 9) Source(32, 9) + SourceIndex(0) -4 >Emitted(21, 12) Source(32, 22) + SourceIndex(0) -5 >Emitted(21, 14) Source(32, 24) + SourceIndex(0) -6 >Emitted(21, 15) Source(32, 25) + SourceIndex(0) +1->Emitted(22, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(32, 5) + SourceIndex(0) +3 >Emitted(22, 9) Source(32, 9) + SourceIndex(0) +4 >Emitted(22, 12) Source(32, 22) + SourceIndex(0) +5 >Emitted(22, 14) Source(32, 24) + SourceIndex(0) +6 >Emitted(22, 15) Source(32, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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23, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(23, 5) Source(33, 5) + SourceIndex(0) +3 >Emitted(23, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(23, 12) Source(33, 24) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -393,32 +402,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(23, 5) Source(33, 37) + SourceIndex(0) -2 >Emitted(23, 11) Source(33, 43) + SourceIndex(0) -3 >Emitted(23, 12) Source(33, 50) + SourceIndex(0) -4 >Emitted(23, 13) Source(33, 51) + SourceIndex(0) -5 >Emitted(23, 15) Source(33, 53) + SourceIndex(0) -6 >Emitted(23, 16) Source(33, 54) + SourceIndex(0) -7 >Emitted(23, 17) Source(33, 54) + SourceIndex(0) +1->Emitted(24, 5) Source(33, 37) + SourceIndex(0) +2 >Emitted(24, 11) Source(33, 43) + SourceIndex(0) +3 >Emitted(24, 12) Source(33, 50) + SourceIndex(0) +4 >Emitted(24, 13) Source(33, 51) + SourceIndex(0) +5 >Emitted(24, 15) Source(33, 53) + SourceIndex(0) +6 >Emitted(24, 16) Source(33, 54) + SourceIndex(0) +7 >Emitted(24, 17) Source(33, 54) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(24, 1) Source(33, 55) + SourceIndex(0) -2 >Emitted(24, 2) Source(33, 56) + SourceIndex(0) -3 >Emitted(24, 3) Source(33, 57) + SourceIndex(0) +1->Emitted(25, 1) Source(33, 55) + SourceIndex(0) +2 >Emitted(25, 2) Source(33, 56) + SourceIndex(0) +3 >Emitted(25, 3) Source(33, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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n -1->Emitted(25, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(25, 5) Source(34, 5) + SourceIndex(0) -3 >Emitted(25, 9) Source(34, 9) + SourceIndex(0) -4 >Emitted(25, 12) Source(34, 33) + SourceIndex(0) -5 >Emitted(25, 22) Source(34, 42) + SourceIndex(0) -6 >Emitted(25, 23) Source(34, 43) + SourceIndex(0) +1->Emitted(26, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(34, 5) + SourceIndex(0) +3 >Emitted(26, 9) Source(34, 9) + SourceIndex(0) +4 >Emitted(26, 12) Source(34, 33) + SourceIndex(0) +5 >Emitted(26, 22) Source(34, 42) + SourceIndex(0) +6 >Emitted(26, 23) Source(34, 43) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -448,26 +457,26 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(26, 5) Source(34, 47) + SourceIndex(0) -2 >Emitted(26, 11) Source(34, 53) + SourceIndex(0) -3 >Emitted(26, 12) Source(34, 60) + SourceIndex(0) -4 >Emitted(26, 13) Source(34, 61) + SourceIndex(0) -5 >Emitted(26, 15) Source(34, 63) + SourceIndex(0) -6 >Emitted(26, 16) Source(34, 64) + SourceIndex(0) -7 >Emitted(26, 17) Source(34, 64) + SourceIndex(0) +1->Emitted(27, 5) Source(34, 47) + SourceIndex(0) +2 >Emitted(27, 11) Source(34, 53) + SourceIndex(0) +3 >Emitted(27, 12) Source(34, 60) + SourceIndex(0) +4 >Emitted(27, 13) Source(34, 61) + SourceIndex(0) +5 >Emitted(27, 15) Source(34, 63) + SourceIndex(0) +6 >Emitted(27, 16) Source(34, 64) + SourceIndex(0) +7 >Emitted(27, 17) Source(34, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(27, 1) Source(34, 65) + SourceIndex(0) -2 >Emitted(27, 2) Source(34, 66) + SourceIndex(0) -3 >Emitted(27, 3) Source(34, 67) + SourceIndex(0) +1->Emitted(28, 1) Source(34, 65) + SourceIndex(0) +2 >Emitted(28, 2) Source(34, 66) + SourceIndex(0) +3 >Emitted(28, 3) Source(34, 67) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ @@ -475,7 +484,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -485,23 +494,23 @@ sourceFile:contextualTyping.ts 6 > n 7 > , 8 > s -1->Emitted(28, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(28, 5) Source(35, 5) + SourceIndex(0) -3 >Emitted(28, 9) Source(35, 9) + SourceIndex(0) -4 >Emitted(28, 12) Source(35, 44) + SourceIndex(0) -5 >Emitted(28, 22) Source(35, 53) + SourceIndex(0) -6 >Emitted(28, 23) Source(35, 54) + SourceIndex(0) -7 >Emitted(28, 25) Source(35, 56) + SourceIndex(0) -8 >Emitted(28, 26) Source(35, 57) + SourceIndex(0) +1->Emitted(29, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(35, 5) + SourceIndex(0) +3 >Emitted(29, 9) Source(35, 9) + SourceIndex(0) +4 >Emitted(29, 12) Source(35, 44) + SourceIndex(0) +5 >Emitted(29, 22) Source(35, 53) + SourceIndex(0) +6 >Emitted(29, 23) Source(35, 54) + SourceIndex(0) +7 >Emitted(29, 25) Source(35, 56) + SourceIndex(0) +8 >Emitted(29, 26) Source(35, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -509,32 +518,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(29, 5) Source(35, 61) + SourceIndex(0) -2 >Emitted(29, 11) Source(35, 67) + SourceIndex(0) -3 >Emitted(29, 12) Source(35, 74) + SourceIndex(0) -4 >Emitted(29, 13) Source(35, 75) + SourceIndex(0) -5 >Emitted(29, 15) Source(35, 77) + SourceIndex(0) -6 >Emitted(29, 16) Source(35, 78) + SourceIndex(0) -7 >Emitted(29, 17) Source(35, 78) + SourceIndex(0) +1->Emitted(30, 5) Source(35, 61) + SourceIndex(0) +2 >Emitted(30, 11) Source(35, 67) + SourceIndex(0) +3 >Emitted(30, 12) Source(35, 74) + SourceIndex(0) +4 >Emitted(30, 13) Source(35, 75) + SourceIndex(0) +5 >Emitted(30, 15) Source(35, 77) + SourceIndex(0) +6 >Emitted(30, 16) Source(35, 78) + SourceIndex(0) +7 >Emitted(30, 17) Source(35, 78) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(30, 1) Source(35, 79) + SourceIndex(0) -2 >Emitted(30, 2) Source(35, 80) + SourceIndex(0) -3 >Emitted(30, 3) Source(35, 81) + SourceIndex(0) +1->Emitted(31, 1) Source(35, 79) + SourceIndex(0) +2 >Emitted(31, 2) Source(35, 80) + SourceIndex(0) +3 >Emitted(31, 3) Source(35, 81) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -545,48 +554,48 @@ sourceFile:contextualTyping.ts > } = 5 > function( 6 > n -1->Emitted(31, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(31, 5) Source(36, 5) + SourceIndex(0) -3 >Emitted(31, 9) Source(36, 9) + SourceIndex(0) -4 >Emitted(31, 12) Source(39, 5) + SourceIndex(0) -5 >Emitted(31, 22) Source(39, 14) + SourceIndex(0) -6 >Emitted(31, 23) Source(39, 15) + SourceIndex(0) +1->Emitted(32, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(36, 5) + SourceIndex(0) +3 >Emitted(32, 9) Source(36, 9) + SourceIndex(0) +4 >Emitted(32, 12) Source(39, 5) + SourceIndex(0) +5 >Emitted(32, 22) Source(39, 14) + SourceIndex(0) +6 >Emitted(32, 23) Source(39, 15) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(32, 5) Source(39, 19) + SourceIndex(0) -2 >Emitted(32, 11) Source(39, 25) + SourceIndex(0) -3 >Emitted(32, 12) Source(39, 26) + SourceIndex(0) -4 >Emitted(32, 13) Source(39, 27) + SourceIndex(0) -5 >Emitted(32, 14) Source(39, 28) + SourceIndex(0) +1->Emitted(33, 5) Source(39, 19) + SourceIndex(0) +2 >Emitted(33, 11) Source(39, 25) + SourceIndex(0) +3 >Emitted(33, 12) Source(39, 26) + SourceIndex(0) +4 >Emitted(33, 13) Source(39, 27) + SourceIndex(0) +5 >Emitted(33, 14) Source(39, 28) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(33, 1) Source(39, 29) + SourceIndex(0) -2 >Emitted(33, 2) Source(39, 30) + SourceIndex(0) -3 >Emitted(33, 3) Source(39, 31) + SourceIndex(0) +1->Emitted(34, 1) Source(39, 29) + SourceIndex(0) +2 >Emitted(34, 2) Source(39, 30) + SourceIndex(0) +3 >Emitted(34, 3) Source(39, 31) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -595,42 +604,42 @@ sourceFile:contextualTyping.ts 4 > : (n: number, s: string) => number = 5 > function( 6 > n -1->Emitted(34, 1) Source(41, 1) + SourceIndex(0) -2 >Emitted(34, 5) Source(41, 5) + SourceIndex(0) -3 >Emitted(34, 9) Source(41, 9) + SourceIndex(0) -4 >Emitted(34, 12) Source(41, 46) + SourceIndex(0) -5 >Emitted(34, 22) Source(41, 55) + SourceIndex(0) -6 >Emitted(34, 23) Source(41, 56) + SourceIndex(0) +1->Emitted(35, 1) Source(41, 1) + SourceIndex(0) +2 >Emitted(35, 5) Source(41, 5) + SourceIndex(0) +3 >Emitted(35, 9) Source(41, 9) + SourceIndex(0) +4 >Emitted(35, 12) Source(41, 46) + SourceIndex(0) +5 >Emitted(35, 22) Source(41, 55) + SourceIndex(0) +6 >Emitted(35, 23) Source(41, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(35, 5) Source(41, 60) + SourceIndex(0) -2 >Emitted(35, 11) Source(41, 66) + SourceIndex(0) -3 >Emitted(35, 12) Source(41, 67) + SourceIndex(0) -4 >Emitted(35, 13) Source(41, 68) + SourceIndex(0) -5 >Emitted(35, 14) Source(41, 69) + SourceIndex(0) +1->Emitted(36, 5) Source(41, 60) + SourceIndex(0) +2 >Emitted(36, 11) Source(41, 66) + SourceIndex(0) +3 >Emitted(36, 12) Source(41, 67) + SourceIndex(0) +4 >Emitted(36, 13) Source(41, 68) + SourceIndex(0) +5 >Emitted(36, 14) Source(41, 69) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 71) + SourceIndex(0) +3 >Emitted(37, 3) Source(41, 72) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^^^ @@ -640,7 +649,7 @@ sourceFile:contextualTyping.ts 8 > ^^ 9 > ^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -652,18 +661,18 @@ sourceFile:contextualTyping.ts 8 > [] 9 > ] 10> ; -1->Emitted(37, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(42, 5) + SourceIndex(0) -3 >Emitted(37, 9) Source(42, 9) + SourceIndex(0) -4 >Emitted(37, 12) Source(42, 24) + SourceIndex(0) -5 >Emitted(37, 13) Source(42, 25) + SourceIndex(0) -6 >Emitted(37, 15) Source(42, 27) + SourceIndex(0) -7 >Emitted(37, 17) Source(42, 28) + SourceIndex(0) -8 >Emitted(37, 19) Source(42, 30) + SourceIndex(0) -9 >Emitted(37, 20) Source(42, 31) + SourceIndex(0) -10>Emitted(37, 21) Source(42, 32) + SourceIndex(0) +1->Emitted(38, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(38, 5) Source(42, 5) + SourceIndex(0) +3 >Emitted(38, 9) Source(42, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(42, 24) + SourceIndex(0) +5 >Emitted(38, 13) Source(42, 25) + SourceIndex(0) +6 >Emitted(38, 15) Source(42, 27) + SourceIndex(0) +7 >Emitted(38, 17) Source(42, 28) + SourceIndex(0) +8 >Emitted(38, 19) Source(42, 30) + SourceIndex(0) +9 >Emitted(38, 20) Source(42, 31) + SourceIndex(0) +10>Emitted(38, 21) Source(42, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -677,7 +686,7 @@ sourceFile:contextualTyping.ts 12> ^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -693,22 +702,22 @@ sourceFile:contextualTyping.ts 12> ) 13> ] 14> ; -1->Emitted(38, 1) Source(43, 1) + SourceIndex(0) -2 >Emitted(38, 5) Source(43, 5) + SourceIndex(0) -3 >Emitted(38, 10) Source(43, 10) + SourceIndex(0) -4 >Emitted(38, 13) Source(43, 21) + SourceIndex(0) -5 >Emitted(38, 14) Source(43, 28) + SourceIndex(0) -6 >Emitted(38, 15) Source(43, 29) + SourceIndex(0) -7 >Emitted(38, 17) Source(43, 31) + SourceIndex(0) -8 >Emitted(38, 18) Source(43, 32) + SourceIndex(0) -9 >Emitted(38, 20) Source(43, 39) + SourceIndex(0) -10>Emitted(38, 21) Source(43, 40) + SourceIndex(0) -11>Emitted(38, 23) Source(43, 42) + SourceIndex(0) -12>Emitted(38, 24) Source(43, 43) + SourceIndex(0) -13>Emitted(38, 25) Source(43, 44) + SourceIndex(0) -14>Emitted(38, 26) Source(43, 45) + SourceIndex(0) +1->Emitted(39, 1) Source(43, 1) + SourceIndex(0) +2 >Emitted(39, 5) Source(43, 5) + SourceIndex(0) +3 >Emitted(39, 10) Source(43, 10) + SourceIndex(0) +4 >Emitted(39, 13) Source(43, 21) + SourceIndex(0) +5 >Emitted(39, 14) Source(43, 28) + SourceIndex(0) +6 >Emitted(39, 15) Source(43, 29) + SourceIndex(0) +7 >Emitted(39, 17) Source(43, 31) + SourceIndex(0) +8 >Emitted(39, 18) Source(43, 32) + SourceIndex(0) +9 >Emitted(39, 20) Source(43, 39) + SourceIndex(0) +10>Emitted(39, 21) Source(43, 40) + SourceIndex(0) +11>Emitted(39, 23) Source(43, 42) + SourceIndex(0) +12>Emitted(39, 24) Source(43, 43) + SourceIndex(0) +13>Emitted(39, 25) Source(43, 44) + SourceIndex(0) +14>Emitted(39, 26) Source(43, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -717,7 +726,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -728,69 +737,69 @@ sourceFile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(39, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(39, 5) Source(44, 5) + SourceIndex(0) -3 >Emitted(39, 10) Source(44, 10) + SourceIndex(0) -4 >Emitted(39, 13) Source(44, 50) + SourceIndex(0) -5 >Emitted(39, 14) Source(44, 51) + SourceIndex(0) -6 >Emitted(39, 24) Source(44, 60) + SourceIndex(0) -7 >Emitted(39, 25) Source(44, 61) + SourceIndex(0) -8 >Emitted(39, 27) Source(44, 63) + SourceIndex(0) -9 >Emitted(39, 28) Source(44, 64) + SourceIndex(0) +1->Emitted(40, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(44, 5) + SourceIndex(0) +3 >Emitted(40, 10) Source(44, 10) + SourceIndex(0) +4 >Emitted(40, 13) Source(44, 50) + SourceIndex(0) +5 >Emitted(40, 14) Source(44, 51) + SourceIndex(0) +6 >Emitted(40, 24) Source(44, 60) + SourceIndex(0) +7 >Emitted(40, 25) Source(44, 61) + SourceIndex(0) +8 >Emitted(40, 27) Source(44, 63) + SourceIndex(0) +9 >Emitted(40, 28) Source(44, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(40, 5) Source(44, 68) + SourceIndex(0) -2 >Emitted(40, 11) Source(44, 74) + SourceIndex(0) -3 >Emitted(40, 12) Source(44, 75) + SourceIndex(0) -4 >Emitted(40, 13) Source(44, 76) + SourceIndex(0) -5 >Emitted(40, 14) Source(44, 77) + SourceIndex(0) +1->Emitted(41, 5) Source(44, 68) + SourceIndex(0) +2 >Emitted(41, 11) Source(44, 74) + SourceIndex(0) +3 >Emitted(41, 12) Source(44, 75) + SourceIndex(0) +4 >Emitted(41, 13) Source(44, 76) + SourceIndex(0) +5 >Emitted(41, 14) Source(44, 77) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(41, 1) Source(44, 78) + SourceIndex(0) -2 >Emitted(41, 2) Source(44, 79) + SourceIndex(0) -3 >Emitted(41, 3) Source(44, 80) + SourceIndex(0) -4 >Emitted(41, 4) Source(44, 81) + SourceIndex(0) +1->Emitted(42, 1) Source(44, 78) + SourceIndex(0) +2 >Emitted(42, 2) Source(44, 79) + SourceIndex(0) +3 >Emitted(42, 3) Source(44, 80) + SourceIndex(0) +4 >Emitted(42, 4) Source(44, 81) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t12 4 > : IBar = -1->Emitted(42, 1) Source(45, 1) + SourceIndex(0) -2 >Emitted(42, 5) Source(45, 5) + SourceIndex(0) -3 >Emitted(42, 10) Source(45, 10) + SourceIndex(0) -4 >Emitted(42, 13) Source(45, 19) + SourceIndex(0) +1->Emitted(43, 1) Source(45, 1) + SourceIndex(0) +2 >Emitted(43, 5) Source(45, 5) + SourceIndex(0) +3 >Emitted(43, 10) Source(45, 10) + SourceIndex(0) +4 >Emitted(43, 13) Source(45, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -798,48 +807,48 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(43, 5) Source(46, 5) + SourceIndex(0) -2 >Emitted(43, 8) Source(46, 8) + SourceIndex(0) -3 >Emitted(43, 10) Source(46, 16) + SourceIndex(0) -4 >Emitted(43, 11) Source(46, 17) + SourceIndex(0) -5 >Emitted(43, 13) Source(46, 19) + SourceIndex(0) -6 >Emitted(43, 14) Source(46, 20) + SourceIndex(0) +1->Emitted(44, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(44, 8) Source(46, 8) + SourceIndex(0) +3 >Emitted(44, 10) Source(46, 16) + SourceIndex(0) +4 >Emitted(44, 11) Source(46, 17) + SourceIndex(0) +5 >Emitted(44, 13) Source(46, 19) + SourceIndex(0) +6 >Emitted(44, 14) Source(46, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(44, 2) Source(47, 2) + SourceIndex(0) -2 >Emitted(44, 3) Source(47, 2) + SourceIndex(0) +1->Emitted(45, 2) Source(47, 2) + SourceIndex(0) +2 >Emitted(45, 3) Source(47, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t13 4 > = 5 > ( -1->Emitted(45, 1) Source(48, 1) + SourceIndex(0) -2 >Emitted(45, 5) Source(48, 5) + SourceIndex(0) -3 >Emitted(45, 10) Source(48, 10) + SourceIndex(0) -4 >Emitted(45, 13) Source(48, 19) + SourceIndex(0) -5 >Emitted(45, 14) Source(48, 20) + SourceIndex(0) +1->Emitted(46, 1) Source(48, 1) + SourceIndex(0) +2 >Emitted(46, 5) Source(48, 5) + SourceIndex(0) +3 >Emitted(46, 10) Source(48, 10) + SourceIndex(0) +4 >Emitted(46, 13) Source(48, 19) + SourceIndex(0) +5 >Emitted(46, 14) Source(48, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -848,124 +857,124 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(46, 5) Source(49, 5) + SourceIndex(0) -2 >Emitted(46, 6) Source(49, 6) + SourceIndex(0) -3 >Emitted(46, 8) Source(49, 8) + SourceIndex(0) -4 >Emitted(46, 18) Source(49, 17) + SourceIndex(0) -5 >Emitted(46, 19) Source(49, 18) + SourceIndex(0) -6 >Emitted(46, 21) Source(49, 20) + SourceIndex(0) -7 >Emitted(46, 22) Source(49, 21) + SourceIndex(0) +1->Emitted(47, 5) Source(49, 5) + SourceIndex(0) +2 >Emitted(47, 6) Source(49, 6) + SourceIndex(0) +3 >Emitted(47, 8) Source(49, 8) + SourceIndex(0) +4 >Emitted(47, 18) Source(49, 17) + SourceIndex(0) +5 >Emitted(47, 19) Source(49, 18) + SourceIndex(0) +6 >Emitted(47, 21) Source(49, 20) + SourceIndex(0) +7 >Emitted(47, 22) Source(49, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(47, 9) Source(49, 25) + SourceIndex(0) -2 >Emitted(47, 15) Source(49, 31) + SourceIndex(0) -3 >Emitted(47, 16) Source(49, 32) + SourceIndex(0) -4 >Emitted(47, 17) Source(49, 33) + SourceIndex(0) -5 >Emitted(47, 18) Source(49, 34) + SourceIndex(0) +1->Emitted(48, 9) Source(49, 25) + SourceIndex(0) +2 >Emitted(48, 15) Source(49, 31) + SourceIndex(0) +3 >Emitted(48, 16) Source(49, 32) + SourceIndex(0) +4 >Emitted(48, 17) Source(49, 33) + SourceIndex(0) +5 >Emitted(48, 18) Source(49, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTy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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(48, 5) Source(49, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(49, 36) + SourceIndex(0) +1->Emitted(49, 5) Source(49, 35) + SourceIndex(0) +2 >Emitted(49, 6) Source(49, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(49, 2) Source(50, 2) + SourceIndex(0) -2 >Emitted(49, 3) Source(50, 3) + SourceIndex(0) -3 >Emitted(49, 4) Source(50, 3) + SourceIndex(0) +1->Emitted(50, 2) Source(50, 2) + SourceIndex(0) +2 >Emitted(50, 3) Source(50, 3) + SourceIndex(0) +3 >Emitted(50, 4) Source(50, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c3t14 4 > = 5 > ( -1->Emitted(50, 1) Source(51, 1) + SourceIndex(0) -2 >Emitted(50, 5) Source(51, 5) + SourceIndex(0) -3 >Emitted(50, 10) Source(51, 10) + SourceIndex(0) -4 >Emitted(50, 13) Source(51, 19) + SourceIndex(0) -5 >Emitted(50, 14) Source(51, 20) + SourceIndex(0) +1->Emitted(51, 1) Source(51, 1) + SourceIndex(0) +2 >Emitted(51, 5) Source(51, 5) + SourceIndex(0) +3 >Emitted(51, 10) Source(51, 10) + SourceIndex(0) +4 >Emitted(51, 13) Source(51, 19) + SourceIndex(0) +5 >Emitted(51, 14) Source(51, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(51, 5) Source(52, 5) + SourceIndex(0) -2 >Emitted(51, 6) Source(52, 6) + SourceIndex(0) -3 >Emitted(51, 8) Source(52, 8) + SourceIndex(0) -4 >Emitted(51, 10) Source(52, 10) + SourceIndex(0) +1->Emitted(52, 5) Source(52, 5) + SourceIndex(0) +2 >Emitted(52, 6) Source(52, 6) + SourceIndex(0) +3 >Emitted(52, 8) Source(52, 8) + SourceIndex(0) +4 >Emitted(52, 10) Source(52, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(52, 2) Source(53, 2) + SourceIndex(0) -2 >Emitted(52, 3) Source(53, 3) + SourceIndex(0) -3 >Emitted(52, 4) Source(53, 3) + SourceIndex(0) +1->Emitted(53, 2) Source(53, 2) + SourceIndex(0) +2 >Emitted(53, 3) Source(53, 3) + SourceIndex(0) +3 >Emitted(53, 4) Source(53, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Class property assignment > 2 >class 3 > C4T5 -1->Emitted(53, 1) Source(56, 1) + SourceIndex(0) -2 >Emitted(53, 5) Source(56, 7) + SourceIndex(0) -3 >Emitted(53, 9) Source(56, 11) + SourceIndex(0) +1->Emitted(54, 1) Source(56, 1) + SourceIndex(0) +2 >Emitted(54, 5) Source(56, 7) + SourceIndex(0) +3 >Emitted(54, 9) Source(56, 11) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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emitted(54, 5) Source(58, 5) + SourceIndex(0) name (C4T5) -2 >Emitted(54, 14) Source(56, 7) + SourceIndex(0) name (C4T5) -3 >Emitted(54, 18) Source(56, 11) + SourceIndex(0) name (C4T5) +1->Emitted(55, 5) Source(58, 5) + SourceIndex(0) name (C4T5) +2 >Emitted(55, 14) Source(56, 7) + SourceIndex(0) name (C4T5) +3 >Emitted(55, 18) Source(56, 11) + SourceIndex(0) name (C4T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^ 3 > ^ 4 > ^^^ @@ -974,7 +983,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 7 > i 8 > , 9 > s -1->Emitted(55, 9) Source(59, 9) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(55, 13) Source(59, 13) + SourceIndex(0) name (C4T5.constructor) -3 >Emitted(55, 14) Source(59, 14) + SourceIndex(0) name (C4T5.constructor) -4 >Emitted(55, 17) Source(59, 17) + SourceIndex(0) name (C4T5.constructor) -5 >Emitted(55, 20) Source(59, 20) + SourceIndex(0) name (C4T5.constructor) -6 >Emitted(55, 30) Source(59, 29) + SourceIndex(0) name (C4T5.constructor) -7 >Emitted(55, 31) Source(59, 30) + SourceIndex(0) name (C4T5.constructor) -8 >Emitted(55, 33) Source(59, 32) + SourceIndex(0) name (C4T5.constructor) -9 >Emitted(55, 34) Source(59, 33) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(56, 9) Source(59, 9) + SourceIndex(0) name (C4T5.constructor) +2 >Emitted(56, 13) Source(59, 13) + SourceIndex(0) name (C4T5.constructor) +3 >Emitted(56, 14) Source(59, 14) + SourceIndex(0) name (C4T5.constructor) +4 >Emitted(56, 17) Source(59, 17) + SourceIndex(0) name (C4T5.constructor) +5 >Emitted(56, 20) Source(59, 20) + SourceIndex(0) name (C4T5.constructor) +6 >Emitted(56, 30) Source(59, 29) + SourceIndex(0) name (C4T5.constructor) +7 >Emitted(56, 31) Source(59, 30) + SourceIndex(0) name (C4T5.constructor) +8 >Emitted(56, 33) Source(59, 32) + SourceIndex(0) name (C4T5.constructor) +9 >Emitted(56, 34) Source(59, 33) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nP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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return 3 > 4 > s 5 > ; -1->Emitted(56, 13) Source(60, 13) + SourceIndex(0) -2 >Emitted(56, 19) Source(60, 19) + SourceIndex(0) -3 >Emitted(56, 20) Source(60, 20) + SourceIndex(0) -4 >Emitted(56, 21) Source(60, 21) + SourceIndex(0) -5 >Emitted(56, 22) Source(60, 22) + SourceIndex(0) +1->Emitted(57, 13) Source(60, 13) + SourceIndex(0) +2 >Emitted(57, 19) Source(60, 19) + SourceIndex(0) +3 >Emitted(57, 20) Source(60, 20) + SourceIndex(0) +4 >Emitted(57, 21) Source(60, 21) + SourceIndex(0) +5 >Emitted(57, 22) Source(60, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 3 > -1->Emitted(57, 9) Source(61, 9) + SourceIndex(0) -2 >Emitted(57, 10) Source(61, 10) + SourceIndex(0) -3 >Emitted(57, 11) Source(61, 10) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(58, 9) Source(61, 9) + SourceIndex(0) +2 >Emitted(58, 10) Source(61, 10) + SourceIndex(0) +3 >Emitted(58, 11) Source(61, 10) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } -1->Emitted(58, 5) Source(62, 5) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(58, 6) Source(62, 6) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(59, 5) Source(62, 5) + SourceIndex(0) name (C4T5.constructor) +2 >Emitted(59, 6) Source(62, 6) + SourceIndex(0) name (C4T5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } -1->Emitted(59, 5) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(59, 16) Source(63, 2) + SourceIndex(0) name (C4T5) +1->Emitted(60, 5) Source(63, 1) + SourceIndex(0) name (C4T5) +2 >Emitted(60, 16) Source(63, 2) + SourceIndex(0) name (C4T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > @@ -1061,16 +1070,16 @@ sourceFile:contextualTyping.ts > } > } > } -1->Emitted(60, 1) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(60, 2) Source(63, 2) + SourceIndex(0) name (C4T5) -3 >Emitted(60, 2) Source(56, 1) + SourceIndex(0) -4 >Emitted(60, 6) Source(63, 2) + SourceIndex(0) +1->Emitted(61, 1) Source(63, 1) + SourceIndex(0) name (C4T5) +2 >Emitted(61, 2) Source(63, 2) + SourceIndex(0) name (C4T5) +3 >Emitted(61, 2) Source(56, 1) + SourceIndex(0) +4 >Emitted(61, 6) Source(63, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Module property assignment @@ -1083,48 +1092,48 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(61, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(61, 5) Source(66, 8) + SourceIndex(0) -3 >Emitted(61, 9) Source(66, 12) + SourceIndex(0) -4 >Emitted(61, 10) Source(71, 2) + SourceIndex(0) +1->Emitted(62, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(62, 5) Source(66, 8) + SourceIndex(0) +3 >Emitted(62, 9) Source(66, 12) + SourceIndex(0) +4 >Emitted(62, 10) Source(71, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^^^ 3 > ^^^^ 4 > ^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >module 3 > C5T5 4 > 5 > { -1->Emitted(62, 1) Source(66, 1) + SourceIndex(0) -2 >Emitted(62, 12) Source(66, 8) + SourceIndex(0) -3 >Emitted(62, 16) Source(66, 12) + SourceIndex(0) -4 >Emitted(62, 18) Source(66, 13) + SourceIndex(0) -5 >Emitted(62, 19) Source(66, 14) + SourceIndex(0) +1->Emitted(63, 1) Source(66, 1) + SourceIndex(0) +2 >Emitted(63, 12) Source(66, 8) + SourceIndex(0) +3 >Emitted(63, 16) Source(66, 12) + SourceIndex(0) +4 >Emitted(63, 18) Source(66, 13) + SourceIndex(0) +5 >Emitted(63, 19) Source(66, 14) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > export var 2 > foo: (i: number, s: string) => string 3 > ; -1->Emitted(63, 5) Source(67, 16) + SourceIndex(0) name (C5T5) -2 >Emitted(63, 13) Source(67, 53) + SourceIndex(0) name (C5T5) -3 >Emitted(63, 14) Source(67, 54) + SourceIndex(0) name (C5T5) +1->Emitted(64, 5) Source(67, 16) + SourceIndex(0) name (C5T5) +2 >Emitted(64, 13) Source(67, 53) + SourceIndex(0) name (C5T5) +3 >Emitted(64, 14) Source(67, 54) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > foo @@ -1133,52 +1142,52 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(64, 5) Source(68, 5) + SourceIndex(0) name (C5T5) -2 >Emitted(64, 13) Source(68, 8) + SourceIndex(0) name (C5T5) -3 >Emitted(64, 16) Source(68, 11) + SourceIndex(0) name (C5T5) -4 >Emitted(64, 26) Source(68, 20) + SourceIndex(0) name (C5T5) -5 >Emitted(64, 27) Source(68, 21) + SourceIndex(0) name (C5T5) -6 >Emitted(64, 29) Source(68, 23) + SourceIndex(0) name (C5T5) -7 >Emitted(64, 30) Source(68, 24) + SourceIndex(0) name (C5T5) +1->Emitted(65, 5) Source(68, 5) + SourceIndex(0) name (C5T5) +2 >Emitted(65, 13) Source(68, 8) + SourceIndex(0) name (C5T5) +3 >Emitted(65, 16) Source(68, 11) + SourceIndex(0) name (C5T5) +4 >Emitted(65, 26) Source(68, 20) + SourceIndex(0) name (C5T5) +5 >Emitted(65, 27) Source(68, 21) + SourceIndex(0) name (C5T5) +6 >Emitted(65, 29) Source(68, 23) + SourceIndex(0) name (C5T5) +7 >Emitted(65, 30) Source(68, 24) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return 3 > 4 > s 5 > ; -1->Emitted(65, 9) Source(69, 9) + SourceIndex(0) -2 >Emitted(65, 15) Source(69, 15) + SourceIndex(0) -3 >Emitted(65, 16) Source(69, 16) + SourceIndex(0) -4 >Emitted(65, 17) Source(69, 17) + SourceIndex(0) -5 >Emitted(65, 18) Source(69, 18) + SourceIndex(0) +1->Emitted(66, 9) Source(69, 9) + SourceIndex(0) +2 >Emitted(66, 15) Source(69, 15) + SourceIndex(0) +3 >Emitted(66, 16) Source(69, 16) + SourceIndex(0) +4 >Emitted(66, 17) Source(69, 17) + SourceIndex(0) +5 >Emitted(66, 18) Source(69, 18) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } 3 > -1->Emitted(66, 5) Source(70, 5) + SourceIndex(0) -2 >Emitted(66, 6) Source(70, 6) + SourceIndex(0) -3 >Emitted(66, 7) Source(70, 6) + SourceIndex(0) name (C5T5) +1->Emitted(67, 5) Source(70, 5) + SourceIndex(0) +2 >Emitted(67, 6) Source(70, 6) + SourceIndex(0) +3 >Emitted(67, 7) Source(70, 6) + SourceIndex(0) name (C5T5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} @@ -1192,57 +1201,66 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(67, 1) Source(71, 1) + SourceIndex(0) name (C5T5) -2 >Emitted(67, 2) Source(71, 2) + SourceIndex(0) name (C5T5) -3 >Emitted(67, 4) Source(66, 8) + SourceIndex(0) -4 >Emitted(67, 8) Source(66, 12) + SourceIndex(0) -5 >Emitted(67, 13) Source(66, 8) + SourceIndex(0) -6 >Emitted(67, 17) Source(66, 12) + SourceIndex(0) -7 >Emitted(67, 25) Source(71, 2) + SourceIndex(0) +1->Emitted(68, 1) Source(71, 1) + SourceIndex(0) name (C5T5) +2 >Emitted(68, 2) Source(71, 2) + SourceIndex(0) name (C5T5) +3 >Emitted(68, 4) Source(66, 8) + SourceIndex(0) +4 >Emitted(68, 8) Source(66, 12) + SourceIndex(0) +5 >Emitted(68, 13) Source(66, 8) + SourceIndex(0) +6 >Emitted(68, 17) Source(66, 12) + SourceIndex(0) +7 >Emitted(68, 25) Source(71, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Variable assignment > -2 >var -3 > c6t5: (n: number) => IFoo -4 > ; -1->Emitted(68, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(68, 5) Source(74, 5) + SourceIndex(0) -3 >Emitted(68, 9) Source(74, 30) + SourceIndex(0) -4 >Emitted(68, 10) Source(74, 31) + SourceIndex(0) +2 > +3 >// CONTEXT: Variable assignment +1->Emitted(69, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(69, 1) Source(73, 1) + SourceIndex(0) +3 >Emitted(69, 32) Source(73, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c6t5: (n: number) => IFoo +3 > ; +1->Emitted(70, 5) Source(74, 5) + SourceIndex(0) +2 >Emitted(70, 9) Source(74, 30) + SourceIndex(0) +3 >Emitted(70, 10) Source(74, 31) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >c6t5 3 > = <(n: number) => IFoo> 4 > function( 5 > n -1->Emitted(69, 1) Source(75, 1) + SourceIndex(0) -2 >Emitted(69, 5) Source(75, 5) + SourceIndex(0) -3 >Emitted(69, 8) Source(75, 29) + SourceIndex(0) -4 >Emitted(69, 18) Source(75, 38) + SourceIndex(0) -5 >Emitted(69, 19) Source(75, 39) + SourceIndex(0) +1->Emitted(71, 1) Source(75, 1) + SourceIndex(0) +2 >Emitted(71, 5) Source(75, 5) + SourceIndex(0) +3 >Emitted(71, 8) Source(75, 29) + SourceIndex(0) +4 >Emitted(71, 18) Source(75, 38) + SourceIndex(0) +5 >Emitted(71, 19) Source(75, 39) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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(0) -4 >Emitted(70, 13) Source(75, 57) + SourceIndex(0) -5 >Emitted(70, 15) Source(75, 59) + SourceIndex(0) -6 >Emitted(70, 16) Source(75, 60) + SourceIndex(0) -7 >Emitted(70, 17) Source(75, 60) + SourceIndex(0) +1->Emitted(72, 5) Source(75, 43) + SourceIndex(0) +2 >Emitted(72, 11) Source(75, 49) + SourceIndex(0) +3 >Emitted(72, 12) Source(75, 56) + SourceIndex(0) +4 >Emitted(72, 13) Source(75, 57) + SourceIndex(0) +5 >Emitted(72, 15) Source(75, 59) + SourceIndex(0) +6 >Emitted(72, 16) Source(75, 60) + SourceIndex(0) +7 >Emitted(72, 17) Source(75, 60) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(71, 1) Source(75, 61) + SourceIndex(0) -2 >Emitted(71, 2) Source(75, 62) + SourceIndex(0) -3 >Emitted(71, 3) Source(75, 63) + SourceIndex(0) +1->Emitted(73, 1) Source(75, 61) + SourceIndex(0) +2 >Emitted(73, 2) Source(75, 62) + SourceIndex(0) +3 >Emitted(73, 3) Source(75, 63) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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t2: IFoo[] -4 > ; -1->Emitted(72, 1) Source(78, 1) + SourceIndex(0) -2 >Emitted(72, 5) Source(78, 5) + SourceIndex(0) -3 >Emitted(72, 9) Source(78, 17) + SourceIndex(0) -4 >Emitted(72, 10) Source(78, 18) + SourceIndex(0) +2 > +3 >// CONTEXT: Array index assignment +1->Emitted(74, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(74, 1) Source(77, 1) + SourceIndex(0) +3 >Emitted(74, 35) Source(77, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^ @@ -1300,7 +1327,7 @@ sourceFile:contextualTyping.ts 12> ^^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >c7t2 @@ -1316,22 +1343,22 @@ sourceFile:contextualTyping.ts 12> } 13> ) 14> ; -1->Emitted(73, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(73, 5) Source(79, 5) + SourceIndex(0) -3 >Emitted(73, 6) Source(79, 6) + SourceIndex(0) -4 >Emitted(73, 7) Source(79, 7) + SourceIndex(0) -5 >Emitted(73, 8) Source(79, 8) + SourceIndex(0) -6 >Emitted(73, 11) Source(79, 17) + SourceIndex(0) -7 >Emitted(73, 12) Source(79, 18) + SourceIndex(0) -8 >Emitted(73, 14) Source(79, 19) + SourceIndex(0) -9 >Emitted(73, 15) Source(79, 20) + SourceIndex(0) -10>Emitted(73, 17) Source(79, 22) + SourceIndex(0) -11>Emitted(73, 18) Source(79, 23) + SourceIndex(0) -12>Emitted(73, 20) Source(79, 24) + SourceIndex(0) -13>Emitted(73, 21) Source(79, 25) + SourceIndex(0) -14>Emitted(73, 22) Source(79, 26) + SourceIndex(0) +1->Emitted(76, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(76, 5) Source(79, 5) + SourceIndex(0) +3 >Emitted(76, 6) Source(79, 6) + SourceIndex(0) +4 >Emitted(76, 7) Source(79, 7) + SourceIndex(0) +5 >Emitted(76, 8) Source(79, 8) + SourceIndex(0) +6 >Emitted(76, 11) Source(79, 17) + SourceIndex(0) +7 >Emitted(76, 12) Source(79, 18) + SourceIndex(0) +8 >Emitted(76, 14) Source(79, 19) + SourceIndex(0) +9 >Emitted(76, 15) Source(79, 20) + SourceIndex(0) +10>Emitted(76, 17) Source(79, 22) + SourceIndex(0) +11>Emitted(76, 18) Source(79, 23) + SourceIndex(0) +12>Emitted(76, 20) Source(79, 24) + SourceIndex(0) +13>Emitted(76, 21) Source(79, 25) + SourceIndex(0) +14>Emitted(76, 22) Source(79, 26) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -1339,7 +1366,7 @@ sourceFile:contextualTyping.ts 6 > ^^ 7 > ^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Object property assignment @@ -1389,16 +1416,16 @@ sourceFile:contextualTyping.ts 6 > {} 7 > ) 8 > ; -1->Emitted(74, 1) Source(102, 1) + SourceIndex(0) -2 >Emitted(74, 5) Source(102, 5) + SourceIndex(0) -3 >Emitted(74, 10) Source(102, 10) + SourceIndex(0) -4 >Emitted(74, 13) Source(120, 19) + SourceIndex(0) -5 >Emitted(74, 14) Source(120, 20) + SourceIndex(0) -6 >Emitted(74, 16) Source(120, 22) + SourceIndex(0) -7 >Emitted(74, 17) Source(120, 23) + SourceIndex(0) -8 >Emitted(74, 18) Source(120, 24) + SourceIndex(0) +1->Emitted(77, 1) Source(102, 1) + SourceIndex(0) +2 >Emitted(77, 5) Source(102, 5) + SourceIndex(0) +3 >Emitted(77, 10) Source(102, 10) + SourceIndex(0) +4 >Emitted(77, 13) Source(120, 19) + SourceIndex(0) +5 >Emitted(77, 14) Source(120, 20) + SourceIndex(0) +6 >Emitted(77, 16) Source(120, 22) + SourceIndex(0) +7 >Emitted(77, 17) Source(120, 23) + SourceIndex(0) +8 >Emitted(77, 18) Source(120, 24) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1406,7 +1433,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^^^^^^^^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -1417,53 +1444,53 @@ sourceFile:contextualTyping.ts 6 > ( 7 > function( 8 > s -1->Emitted(75, 1) Source(122, 1) + SourceIndex(0) -2 >Emitted(75, 6) Source(122, 6) + SourceIndex(0) -3 >Emitted(75, 7) Source(122, 7) + SourceIndex(0) -4 >Emitted(75, 9) Source(122, 9) + SourceIndex(0) -5 >Emitted(75, 12) Source(122, 12) + SourceIndex(0) -6 >Emitted(75, 13) Source(122, 13) + SourceIndex(0) -7 >Emitted(75, 23) Source(122, 22) + SourceIndex(0) -8 >Emitted(75, 24) Source(122, 23) + SourceIndex(0) +1->Emitted(78, 1) Source(122, 1) + SourceIndex(0) +2 >Emitted(78, 6) Source(122, 6) + SourceIndex(0) +3 >Emitted(78, 7) Source(122, 7) + SourceIndex(0) +4 >Emitted(78, 9) Source(122, 9) + SourceIndex(0) +5 >Emitted(78, 12) Source(122, 12) + SourceIndex(0) +6 >Emitted(78, 13) Source(122, 13) + SourceIndex(0) +7 >Emitted(78, 23) Source(122, 22) + SourceIndex(0) +8 >Emitted(78, 24) Source(122, 23) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(76, 5) Source(122, 27) + SourceIndex(0) -2 >Emitted(76, 11) Source(122, 33) + SourceIndex(0) -3 >Emitted(76, 12) Source(122, 34) + SourceIndex(0) -4 >Emitted(76, 13) Source(122, 35) + SourceIndex(0) -5 >Emitted(76, 14) Source(122, 35) + SourceIndex(0) +1->Emitted(79, 5) Source(122, 27) + SourceIndex(0) +2 >Emitted(79, 11) Source(122, 33) + SourceIndex(0) +3 >Emitted(79, 12) Source(122, 34) + SourceIndex(0) +4 >Emitted(79, 13) Source(122, 35) + SourceIndex(0) +5 >Emitted(79, 14) Source(122, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(77, 1) Source(122, 36) + SourceIndex(0) -2 >Emitted(77, 2) Source(122, 37) + SourceIndex(0) -3 >Emitted(77, 3) Source(122, 38) + SourceIndex(0) -4 >Emitted(77, 4) Source(122, 39) + SourceIndex(0) +1->Emitted(80, 1) Source(122, 36) + SourceIndex(0) +2 >Emitted(80, 2) Source(122, 37) + SourceIndex(0) +3 >Emitted(80, 3) Source(122, 38) + SourceIndex(0) +4 >Emitted(80, 4) Source(122, 39) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1471,48 +1498,48 @@ sourceFile:contextualTyping.ts 4 > t2 5 > = 6 > ( -1->Emitted(78, 1) Source(123, 1) + SourceIndex(0) -2 >Emitted(78, 6) Source(123, 6) + SourceIndex(0) -3 >Emitted(78, 7) Source(123, 7) + SourceIndex(0) -4 >Emitted(78, 9) Source(123, 9) + SourceIndex(0) -5 >Emitted(78, 12) Source(123, 18) + SourceIndex(0) -6 >Emitted(78, 13) Source(123, 19) + SourceIndex(0) +1->Emitted(81, 1) Source(123, 1) + SourceIndex(0) +2 >Emitted(81, 6) Source(123, 6) + SourceIndex(0) +3 >Emitted(81, 7) Source(123, 7) + SourceIndex(0) +4 >Emitted(81, 9) Source(123, 9) + SourceIndex(0) +5 >Emitted(81, 12) Source(123, 18) + SourceIndex(0) +6 >Emitted(81, 13) Source(123, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > n 3 > : 4 > 1 -1->Emitted(79, 5) Source(124, 5) + SourceIndex(0) -2 >Emitted(79, 6) Source(124, 6) + SourceIndex(0) -3 >Emitted(79, 8) Source(124, 8) + SourceIndex(0) -4 >Emitted(79, 9) Source(124, 9) + SourceIndex(0) +1->Emitted(82, 5) Source(124, 5) + SourceIndex(0) +2 >Emitted(82, 6) Source(124, 6) + SourceIndex(0) +3 >Emitted(82, 8) Source(124, 8) + SourceIndex(0) +4 >Emitted(82, 9) Source(124, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > ; -1->Emitted(80, 2) Source(125, 2) + SourceIndex(0) -2 >Emitted(80, 3) Source(125, 3) + SourceIndex(0) -3 >Emitted(80, 4) Source(125, 4) + SourceIndex(0) +1->Emitted(83, 2) Source(125, 2) + SourceIndex(0) +2 >Emitted(83, 3) Source(125, 3) + SourceIndex(0) +3 >Emitted(83, 4) Source(125, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1521,40 +1548,40 @@ sourceFile:contextualTyping.ts 5 > = 6 > [] 7 > ; -1->Emitted(81, 1) Source(126, 1) + SourceIndex(0) -2 >Emitted(81, 6) Source(126, 6) + SourceIndex(0) -3 >Emitted(81, 7) Source(126, 7) + SourceIndex(0) -4 >Emitted(81, 9) Source(126, 9) + SourceIndex(0) -5 >Emitted(81, 12) Source(126, 12) + SourceIndex(0) -6 >Emitted(81, 14) Source(126, 14) + SourceIndex(0) -7 >Emitted(81, 15) Source(126, 15) + SourceIndex(0) +1->Emitted(84, 1) Source(126, 1) + SourceIndex(0) +2 >Emitted(84, 6) Source(126, 6) + SourceIndex(0) +3 >Emitted(84, 7) Source(126, 7) + SourceIndex(0) +4 >Emitted(84, 9) Source(126, 9) + SourceIndex(0) +5 >Emitted(84, 12) Source(126, 12) + SourceIndex(0) +6 >Emitted(84, 14) Source(126, 14) + SourceIndex(0) +7 >Emitted(84, 15) Source(126, 15) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 3 > . 4 > t4 5 > = -1->Emitted(82, 1) Source(127, 1) + SourceIndex(0) -2 >Emitted(82, 6) Source(127, 6) + SourceIndex(0) -3 >Emitted(82, 7) Source(127, 7) + SourceIndex(0) -4 >Emitted(82, 9) Source(127, 9) + SourceIndex(0) -5 >Emitted(82, 12) Source(127, 12) + SourceIndex(0) +1->Emitted(85, 1) Source(127, 1) + SourceIndex(0) +2 >Emitted(85, 6) Source(127, 6) + SourceIndex(0) +3 >Emitted(85, 7) Source(127, 7) + SourceIndex(0) +4 >Emitted(85, 9) Source(127, 9) + SourceIndex(0) +5 >Emitted(85, 12) Source(127, 12) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -1562,33 +1589,33 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(83, 5) Source(127, 25) + SourceIndex(0) -2 >Emitted(83, 11) Source(127, 31) + SourceIndex(0) -3 >Emitted(83, 12) Source(127, 38) + SourceIndex(0) -4 >Emitted(83, 13) Source(127, 39) + SourceIndex(0) -5 >Emitted(83, 15) Source(127, 41) + SourceIndex(0) -6 >Emitted(83, 16) Source(127, 42) + SourceIndex(0) -7 >Emitted(83, 17) Source(127, 42) + SourceIndex(0) +1->Emitted(86, 5) Source(127, 25) + SourceIndex(0) +2 >Emitted(86, 11) Source(127, 31) + SourceIndex(0) +3 >Emitted(86, 12) Source(127, 38) + SourceIndex(0) +4 >Emitted(86, 13) Source(127, 39) + SourceIndex(0) +5 >Emitted(86, 15) Source(127, 41) + SourceIndex(0) +6 >Emitted(86, 16) Source(127, 42) + SourceIndex(0) +7 >Emitted(86, 17) Source(127, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(84, 1) Source(127, 43) + SourceIndex(0) -2 >Emitted(84, 2) Source(127, 44) + SourceIndex(0) -3 >Emitted(84, 3) Source(127, 45) + SourceIndex(0) +1->Emitted(87, 1) Source(127, 43) + SourceIndex(0) +2 >Emitted(87, 2) Source(127, 44) + SourceIndex(0) +3 >Emitted(87, 3) Source(127, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^^^^^^^^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1597,22 +1624,22 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n -1->Emitted(85, 1) Source(128, 1) + SourceIndex(0) -2 >Emitted(85, 6) Source(128, 6) + SourceIndex(0) -3 >Emitted(85, 7) Source(128, 7) + SourceIndex(0) -4 >Emitted(85, 9) Source(128, 9) + SourceIndex(0) -5 >Emitted(85, 12) Source(128, 12) + SourceIndex(0) -6 >Emitted(85, 22) Source(128, 21) + SourceIndex(0) -7 >Emitted(85, 23) Source(128, 22) + SourceIndex(0) +1->Emitted(88, 1) Source(128, 1) + SourceIndex(0) +2 >Emitted(88, 6) Source(128, 6) + SourceIndex(0) +3 >Emitted(88, 7) Source(128, 7) + SourceIndex(0) +4 >Emitted(88, 9) Source(128, 9) + SourceIndex(0) +5 >Emitted(88, 12) Source(128, 12) + SourceIndex(0) +6 >Emitted(88, 22) Source(128, 21) + SourceIndex(0) +7 >Emitted(88, 23) Source(128, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 6 > ) 7 > -1->Emitted(86, 5) Source(128, 26) + SourceIndex(0) -2 >Emitted(86, 11) Source(128, 32) + SourceIndex(0) -3 >Emitted(86, 12) Source(128, 39) + SourceIndex(0) -4 >Emitted(86, 13) Source(128, 40) + SourceIndex(0) -5 >Emitted(86, 15) Source(128, 42) + SourceIndex(0) -6 >Emitted(86, 16) Source(128, 43) + SourceIndex(0) -7 >Emitted(86, 17) Source(128, 43) + SourceIndex(0) +1->Emitted(89, 5) Source(128, 26) + SourceIndex(0) +2 >Emitted(89, 11) Source(128, 32) + SourceIndex(0) +3 >Emitted(89, 12) Source(128, 39) + SourceIndex(0) +4 >Emitted(89, 13) Source(128, 40) + SourceIndex(0) +5 >Emitted(89, 15) Source(128, 42) + SourceIndex(0) +6 >Emitted(89, 16) Source(128, 43) + SourceIndex(0) +7 >Emitted(89, 17) Source(128, 43) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(87, 1) Source(128, 44) + SourceIndex(0) -2 >Emitted(87, 2) Source(128, 45) + SourceIndex(0) -3 >Emitted(87, 3) Source(128, 46) + SourceIndex(0) +1->Emitted(90, 1) Source(128, 44) + SourceIndex(0) +2 >Emitted(90, 2) Source(128, 45) + SourceIndex(0) +3 >Emitted(90, 3) Source(128, 46) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1648,7 +1675,7 @@ sourceFile:contextualTyping.ts 7 > ^ 8 > ^^ 9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1659,24 +1686,24 @@ sourceFile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(88, 1) Source(129, 1) + SourceIndex(0) -2 >Emitted(88, 6) Source(129, 6) + SourceIndex(0) -3 >Emitted(88, 7) Source(129, 7) + SourceIndex(0) -4 >Emitted(88, 9) Source(129, 9) + SourceIndex(0) -5 >Emitted(88, 12) Source(129, 12) + SourceIndex(0) -6 >Emitted(88, 22) Source(129, 21) + SourceIndex(0) -7 >Emitted(88, 23) Source(129, 22) + SourceIndex(0) -8 >Emitted(88, 25) Source(129, 24) + SourceIndex(0) -9 >Emitted(88, 26) Source(129, 25) + SourceIndex(0) +1->Emitted(91, 1) Source(129, 1) + SourceIndex(0) +2 >Emitted(91, 6) Source(129, 6) + SourceIndex(0) +3 >Emitted(91, 7) Source(129, 7) + SourceIndex(0) +4 >Emitted(91, 9) Source(129, 9) + SourceIndex(0) +5 >Emitted(91, 12) Source(129, 12) + SourceIndex(0) +6 >Emitted(91, 22) Source(129, 21) + SourceIndex(0) +7 >Emitted(91, 23) Source(129, 22) + SourceIndex(0) +8 >Emitted(91, 25) Source(129, 24) + SourceIndex(0) +9 >Emitted(91, 26) Source(129, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTy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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -1684,33 +1711,33 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(89, 5) Source(129, 29) + SourceIndex(0) -2 >Emitted(89, 11) Source(129, 35) + SourceIndex(0) -3 >Emitted(89, 12) Source(129, 42) + SourceIndex(0) -4 >Emitted(89, 13) Source(129, 43) + SourceIndex(0) -5 >Emitted(89, 15) Source(129, 45) + SourceIndex(0) -6 >Emitted(89, 16) Source(129, 46) + SourceIndex(0) -7 >Emitted(89, 17) Source(129, 46) + SourceIndex(0) +1->Emitted(92, 5) Source(129, 29) + SourceIndex(0) +2 >Emitted(92, 11) Source(129, 35) + SourceIndex(0) +3 >Emitted(92, 12) Source(129, 42) + SourceIndex(0) +4 >Emitted(92, 13) Source(129, 43) + SourceIndex(0) +5 >Emitted(92, 15) Source(129, 45) + SourceIndex(0) +6 >Emitted(92, 16) Source(129, 46) + SourceIndex(0) +7 >Emitted(92, 17) Source(129, 46) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(90, 1) Source(129, 47) + SourceIndex(0) -2 >Emitted(90, 2) Source(129, 48) + SourceIndex(0) -3 >Emitted(90, 3) Source(129, 49) + SourceIndex(0) +1->Emitted(93, 1) Source(129, 47) + SourceIndex(0) +2 >Emitted(93, 2) Source(129, 48) + SourceIndex(0) +3 >Emitted(93, 3) Source(129, 49) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^^^^^^^^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1719,50 +1746,50 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n: number -1->Emitted(91, 1) Source(130, 1) + SourceIndex(0) -2 >Emitted(91, 6) Source(130, 6) + SourceIndex(0) -3 >Emitted(91, 7) Source(130, 7) + SourceIndex(0) -4 >Emitted(91, 9) Source(130, 9) + SourceIndex(0) -5 >Emitted(91, 12) Source(130, 12) + SourceIndex(0) -6 >Emitted(91, 22) Source(130, 21) + SourceIndex(0) -7 >Emitted(91, 23) Source(130, 30) + SourceIndex(0) +1->Emitted(94, 1) Source(130, 1) + SourceIndex(0) +2 >Emitted(94, 6) Source(130, 6) + SourceIndex(0) +3 >Emitted(94, 7) Source(130, 7) + SourceIndex(0) +4 >Emitted(94, 9) Source(130, 9) + SourceIndex(0) +5 >Emitted(94, 12) Source(130, 12) + SourceIndex(0) +6 >Emitted(94, 22) Source(130, 21) + SourceIndex(0) +7 >Emitted(94, 23) Source(130, 30) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > -1->Emitted(92, 5) Source(130, 34) + SourceIndex(0) -2 >Emitted(92, 11) Source(130, 40) + SourceIndex(0) -3 >Emitted(92, 12) Source(130, 41) + SourceIndex(0) -4 >Emitted(92, 13) Source(130, 42) + SourceIndex(0) -5 >Emitted(92, 14) Source(130, 42) + SourceIndex(0) +1->Emitted(95, 5) Source(130, 34) + SourceIndex(0) +2 >Emitted(95, 11) Source(130, 40) + SourceIndex(0) +3 >Emitted(95, 12) Source(130, 41) + SourceIndex(0) +4 >Emitted(95, 13) Source(130, 42) + SourceIndex(0) +5 >Emitted(95, 14) Source(130, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(93, 1) Source(130, 43) + SourceIndex(0) -2 >Emitted(93, 2) Source(130, 44) + SourceIndex(0) -3 >Emitted(93, 3) Source(130, 45) + SourceIndex(0) +1->Emitted(96, 1) Source(130, 43) + SourceIndex(0) +2 >Emitted(96, 2) Source(130, 44) + SourceIndex(0) +3 >Emitted(96, 3) Source(130, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ 5 > ^^^ 6 > ^^^^^^^^^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -1772,43 +1799,43 @@ sourceFile:contextualTyping.ts 5 > = 6 > function( 7 > n -1->Emitted(94, 1) Source(132, 1) + SourceIndex(0) -2 >Emitted(94, 6) Source(132, 6) + SourceIndex(0) -3 >Emitted(94, 7) Source(132, 7) + SourceIndex(0) -4 >Emitted(94, 9) Source(132, 9) + SourceIndex(0) -5 >Emitted(94, 12) Source(132, 12) + SourceIndex(0) -6 >Emitted(94, 22) Source(132, 21) + SourceIndex(0) -7 >Emitted(94, 23) Source(132, 22) + SourceIndex(0) +1->Emitted(97, 1) Source(132, 1) + SourceIndex(0) +2 >Emitted(97, 6) Source(132, 6) + SourceIndex(0) +3 >Emitted(97, 7) Source(132, 7) + SourceIndex(0) +4 >Emitted(97, 9) Source(132, 9) + SourceIndex(0) +5 >Emitted(97, 12) Source(132, 12) + SourceIndex(0) +6 >Emitted(97, 22) Source(132, 21) + SourceIndex(0) +7 >Emitted(97, 23) Source(132, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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 34) + SourceIndex(0) -5 >Emitted(95, 14) Source(132, 35) + SourceIndex(0) +1->Emitted(98, 5) Source(132, 26) + SourceIndex(0) +2 >Emitted(98, 11) Source(132, 32) + SourceIndex(0) +3 >Emitted(98, 12) Source(132, 33) + SourceIndex(0) +4 >Emitted(98, 13) Source(132, 34) + SourceIndex(0) +5 >Emitted(98, 14) Source(132, 35) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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+ SourceIndex(0) +1->Emitted(99, 1) Source(132, 36) + SourceIndex(0) +2 >Emitted(99, 2) Source(132, 37) + SourceIndex(0) +3 >Emitted(99, 3) Source(132, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^ @@ -1819,7 +1846,7 @@ sourceFile:contextualTyping.ts 9 > ^^ 10> ^ 11> ^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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source(133, 9) + SourceIndex(0) -5 >Emitted(97, 12) Source(133, 12) + SourceIndex(0) -6 >Emitted(97, 13) Source(133, 13) + SourceIndex(0) -7 >Emitted(97, 15) Source(133, 15) + SourceIndex(0) -8 >Emitted(97, 17) Source(133, 16) + SourceIndex(0) -9 >Emitted(97, 19) Source(133, 18) + SourceIndex(0) -10>Emitted(97, 20) Source(133, 19) + SourceIndex(0) -11>Emitted(97, 21) Source(133, 20) + SourceIndex(0) +1->Emitted(100, 1) Source(133, 1) + SourceIndex(0) +2 >Emitted(100, 6) Source(133, 6) + SourceIndex(0) +3 >Emitted(100, 7) Source(133, 7) + SourceIndex(0) +4 >Emitted(100, 9) Source(133, 9) + SourceIndex(0) +5 >Emitted(100, 12) Source(133, 12) + SourceIndex(0) +6 >Emitted(100, 13) Source(133, 13) + SourceIndex(0) +7 >Emitted(100, 15) Source(133, 15) + SourceIndex(0) +8 >Emitted(100, 17) Source(133, 16) + SourceIndex(0) +9 >Emitted(100, 19) Source(133, 18) + SourceIndex(0) +10>Emitted(100, 20) Source(133, 19) + SourceIndex(0) +11>Emitted(100, 21) Source(133, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ @@ -1859,7 +1886,7 @@ sourceFile:contextualTyping.ts 13> ^ 14> ^ 15> ^ -16> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -1876,23 +1903,23 @@ sourceFile:contextualTyping.ts 13> ) 14> ] 15> ; -1->Emitted(98, 1) Source(134, 1) + SourceIndex(0) -2 >Emitted(98, 6) Source(134, 6) + SourceIndex(0) -3 >Emitted(98, 7) Source(134, 7) + SourceIndex(0) -4 >Emitted(98, 10) Source(134, 10) + SourceIndex(0) -5 >Emitted(98, 13) Source(134, 13) + SourceIndex(0) -6 >Emitted(98, 14) Source(134, 20) + SourceIndex(0) -7 >Emitted(98, 15) Source(134, 21) + SourceIndex(0) -8 >Emitted(98, 17) Source(134, 23) + SourceIndex(0) -9 >Emitted(98, 18) Source(134, 24) + SourceIndex(0) -10>Emitted(98, 20) Source(134, 31) + SourceIndex(0) -11>Emitted(98, 21) Source(134, 32) + SourceIndex(0) -12>Emitted(98, 23) Source(134, 34) + SourceIndex(0) -13>Emitted(98, 24) Source(134, 35) + SourceIndex(0) -14>Emitted(98, 25) Source(134, 36) + SourceIndex(0) -15>Emitted(98, 26) Source(134, 37) + SourceIndex(0) +1->Emitted(101, 1) Source(134, 1) + SourceIndex(0) +2 >Emitted(101, 6) Source(134, 6) + SourceIndex(0) +3 >Emitted(101, 7) Source(134, 7) + SourceIndex(0) +4 >Emitted(101, 10) Source(134, 10) + SourceIndex(0) +5 >Emitted(101, 13) Source(134, 13) + SourceIndex(0) +6 >Emitted(101, 14) Source(134, 20) + SourceIndex(0) +7 >Emitted(101, 15) Source(134, 21) + SourceIndex(0) +8 >Emitted(101, 17) Source(134, 23) + SourceIndex(0) +9 >Emitted(101, 18) Source(134, 24) + SourceIndex(0) +10>Emitted(101, 20) Source(134, 31) + SourceIndex(0) +11>Emitted(101, 21) Source(134, 32) + SourceIndex(0) +12>Emitted(101, 23) Source(134, 34) + SourceIndex(0) +13>Emitted(101, 24) Source(134, 35) + SourceIndex(0) +14>Emitted(101, 25) Source(134, 36) + SourceIndex(0) +15>Emitted(101, 26) Source(134, 37) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ @@ -1902,7 +1929,7 @@ sourceFile:contextualTyping.ts 8 > ^ 9 > ^^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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2 >objc8 @@ -1914,73 +1941,73 @@ sourceFile:contextualTyping.ts 8 > n 9 > , 10> s -1->Emitted(99, 1) Source(135, 1) + SourceIndex(0) -2 >Emitted(99, 6) Source(135, 6) + SourceIndex(0) -3 >Emitted(99, 7) Source(135, 7) + SourceIndex(0) -4 >Emitted(99, 10) Source(135, 10) + SourceIndex(0) -5 >Emitted(99, 13) Source(135, 13) + SourceIndex(0) -6 >Emitted(99, 14) Source(135, 14) + SourceIndex(0) -7 >Emitted(99, 24) Source(135, 23) + SourceIndex(0) -8 >Emitted(99, 25) Source(135, 24) + SourceIndex(0) -9 >Emitted(99, 27) Source(135, 26) + SourceIndex(0) -10>Emitted(99, 28) Source(135, 27) + SourceIndex(0) +1->Emitted(102, 1) Source(135, 1) + SourceIndex(0) +2 >Emitted(102, 6) Source(135, 6) + SourceIndex(0) +3 >Emitted(102, 7) Source(135, 7) + SourceIndex(0) +4 >Emitted(102, 10) Source(135, 10) + SourceIndex(0) +5 >Emitted(102, 13) Source(135, 13) + SourceIndex(0) +6 >Emitted(102, 14) Source(135, 14) + SourceIndex(0) +7 >Emitted(102, 24) Source(135, 23) + SourceIndex(0) +8 >Emitted(102, 25) Source(135, 24) + SourceIndex(0) +9 >Emitted(102, 27) Source(135, 26) + SourceIndex(0) +10>Emitted(102, 28) Source(135, 27) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > 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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(100, 5) Source(135, 31) + SourceIndex(0) -2 >Emitted(100, 11) Source(135, 37) + SourceIndex(0) -3 >Emitted(100, 12) Source(135, 38) + SourceIndex(0) -4 >Emitted(100, 13) Source(135, 39) + SourceIndex(0) -5 >Emitted(100, 14) Source(135, 40) + SourceIndex(0) +1->Emitted(103, 5) Source(135, 31) + SourceIndex(0) +2 >Emitted(103, 11) Source(135, 37) + SourceIndex(0) +3 >Emitted(103, 12) Source(135, 38) + SourceIndex(0) +4 >Emitted(103, 13) Source(135, 39) + SourceIndex(0) +5 >Emitted(103, 14) Source(135, 40) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\n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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(101, 1) Source(135, 41) + SourceIndex(0) -2 >Emitted(101, 2) Source(135, 42) + SourceIndex(0) -3 >Emitted(101, 3) Source(135, 43) + SourceIndex(0) -4 >Emitted(101, 4) Source(135, 44) + SourceIndex(0) +1->Emitted(104, 1) Source(135, 41) + SourceIndex(0) +2 >Emitted(104, 2) Source(135, 42) + SourceIndex(0) +3 >Emitted(104, 3) Source(135, 43) + SourceIndex(0) +4 >Emitted(104, 4) Source(135, 44) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTy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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 3 > . 4 > t12 5 > = -1->Emitted(102, 1) Source(136, 1) + SourceIndex(0) -2 >Emitted(102, 6) Source(136, 6) + SourceIndex(0) -3 >Emitted(102, 7) Source(136, 7) + SourceIndex(0) -4 >Emitted(102, 10) Source(136, 10) + SourceIndex(0) -5 >Emitted(102, 13) Source(136, 13) + SourceIndex(0) +1->Emitted(105, 1) Source(136, 1) + SourceIndex(0) +2 >Emitted(105, 6) Source(136, 6) + SourceIndex(0) +3 >Emitted(105, 7) Source(136, 7) + SourceIndex(0) +4 >Emitted(105, 10) Source(136, 10) + SourceIndex(0) +5 >Emitted(105, 13) Source(136, 13) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -1988,29 +2015,29 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(103, 5) Source(137, 5) + SourceIndex(0) -2 >Emitted(103, 8) Source(137, 8) + SourceIndex(0) -3 >Emitted(103, 10) Source(137, 16) + SourceIndex(0) -4 >Emitted(103, 11) Source(137, 17) + SourceIndex(0) -5 >Emitted(103, 13) Source(137, 19) + SourceIndex(0) -6 >Emitted(103, 14) Source(137, 20) + SourceIndex(0) +1->Emitted(106, 5) Source(137, 5) + SourceIndex(0) +2 >Emitted(106, 8) Source(137, 8) + SourceIndex(0) +3 >Emitted(106, 10) Source(137, 16) + SourceIndex(0) +4 >Emitted(106, 11) Source(137, 17) + SourceIndex(0) +5 >Emitted(106, 13) Source(137, 19) + SourceIndex(0) +6 >Emitted(106, 14) Source(137, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(104, 2) Source(138, 2) + SourceIndex(0) -2 >Emitted(104, 3) Source(138, 2) + SourceIndex(0) +1->Emitted(107, 2) Source(138, 2) + SourceIndex(0) +2 >Emitted(107, 3) Source(138, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -2018,21 +2045,21 @@ sourceFile:contextualTyping.ts 4 > t13 5 > = 6 > ( -1->Emitted(105, 1) Source(139, 1) + SourceIndex(0) -2 >Emitted(105, 6) Source(139, 6) + SourceIndex(0) -3 >Emitted(105, 7) Source(139, 7) + SourceIndex(0) -4 >Emitted(105, 10) Source(139, 10) + SourceIndex(0) -5 >Emitted(105, 13) Source(139, 19) + SourceIndex(0) -6 >Emitted(105, 14) Source(139, 20) + SourceIndex(0) +1->Emitted(108, 1) Source(139, 1) + SourceIndex(0) +2 >Emitted(108, 6) Source(139, 6) + SourceIndex(0) +3 >Emitted(108, 7) Source(139, 7) + SourceIndex(0) +4 >Emitted(108, 10) Source(139, 10) + SourceIndex(0) +5 >Emitted(108, 13) Source(139, 19) + SourceIndex(0) +6 >Emitted(108, 14) Source(139, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -2041,58 +2068,58 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(106, 5) Source(140, 5) + SourceIndex(0) -2 >Emitted(106, 6) Source(140, 6) + SourceIndex(0) -3 >Emitted(106, 8) Source(140, 8) + SourceIndex(0) -4 >Emitted(106, 18) Source(140, 17) + SourceIndex(0) -5 >Emitted(106, 19) Source(140, 18) + SourceIndex(0) -6 >Emitted(106, 21) Source(140, 20) + SourceIndex(0) -7 >Emitted(106, 22) Source(140, 21) + SourceIndex(0) +1->Emitted(109, 5) Source(140, 5) + SourceIndex(0) +2 >Emitted(109, 6) Source(140, 6) + SourceIndex(0) +3 >Emitted(109, 8) Source(140, 8) + SourceIndex(0) +4 >Emitted(109, 18) Source(140, 17) + SourceIndex(0) +5 >Emitted(109, 19) Source(140, 18) + SourceIndex(0) +6 >Emitted(109, 21) Source(140, 20) + SourceIndex(0) +7 >Emitted(109, 22) Source(140, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(107, 9) Source(140, 25) + SourceIndex(0) -2 >Emitted(107, 15) Source(140, 31) + SourceIndex(0) -3 >Emitted(107, 16) Source(140, 32) + SourceIndex(0) -4 >Emitted(107, 17) Source(140, 33) + SourceIndex(0) -5 >Emitted(107, 18) Source(140, 34) + SourceIndex(0) +1->Emitted(110, 9) Source(140, 25) + SourceIndex(0) +2 >Emitted(110, 15) Source(140, 31) + SourceIndex(0) +3 >Emitted(110, 16) Source(140, 32) + SourceIndex(0) +4 >Emitted(110, 17) Source(140, 33) + SourceIndex(0) +5 >Emitted(110, 18) Source(140, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(108, 5) Source(140, 35) + SourceIndex(0) -2 >Emitted(108, 6) Source(140, 36) + SourceIndex(0) +1->Emitted(111, 5) Source(140, 35) + SourceIndex(0) +2 >Emitted(111, 6) Source(140, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(109, 2) Source(141, 2) + SourceIndex(0) -2 >Emitted(109, 3) Source(141, 3) + SourceIndex(0) -3 >Emitted(109, 4) Source(141, 3) + SourceIndex(0) +1->Emitted(112, 2) Source(141, 2) + SourceIndex(0) +2 >Emitted(112, 3) Source(141, 3) + SourceIndex(0) +3 >Emitted(112, 4) Source(141, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^ 5 > ^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >objc8 @@ -2100,46 +2127,46 @@ sourceFile:contextualTyping.ts 4 > t14 5 > = 6 > ( -1->Emitted(110, 1) Source(142, 1) + SourceIndex(0) -2 >Emitted(110, 6) Source(142, 6) + SourceIndex(0) -3 >Emitted(110, 7) Source(142, 7) + SourceIndex(0) -4 >Emitted(110, 10) Source(142, 10) + SourceIndex(0) -5 >Emitted(110, 13) Source(142, 19) + SourceIndex(0) -6 >Emitted(110, 14) Source(142, 20) + SourceIndex(0) +1->Emitted(113, 1) Source(142, 1) + SourceIndex(0) +2 >Emitted(113, 6) Source(142, 6) + SourceIndex(0) +3 >Emitted(113, 7) Source(142, 7) + SourceIndex(0) +4 >Emitted(113, 10) Source(142, 10) + SourceIndex(0) +5 >Emitted(113, 13) Source(142, 19) + SourceIndex(0) +6 >Emitted(113, 14) Source(142, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(111, 5) Source(143, 5) + SourceIndex(0) -2 >Emitted(111, 6) Source(143, 6) + SourceIndex(0) -3 >Emitted(111, 8) Source(143, 8) + SourceIndex(0) -4 >Emitted(111, 10) Source(143, 10) + SourceIndex(0) +1->Emitted(114, 5) Source(143, 5) + SourceIndex(0) +2 >Emitted(114, 6) Source(143, 6) + SourceIndex(0) +3 >Emitted(114, 8) Source(143, 8) + SourceIndex(0) +4 >Emitted(114, 10) Source(143, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(112, 2) Source(144, 2) + SourceIndex(0) -2 >Emitted(112, 3) Source(144, 3) + SourceIndex(0) -3 >Emitted(112, 4) Source(144, 3) + SourceIndex(0) +1->Emitted(115, 2) Source(144, 2) + SourceIndex(0) +2 >Emitted(115, 3) Source(144, 3) + SourceIndex(0) +3 >Emitted(115, 4) Source(144, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^ 3 > ^^^^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >// CONTEXT: Function call > @@ -2147,54 +2174,54 @@ sourceFile:contextualTyping.ts 3 > c9t5 4 > ( 5 > f: (n: number) => IFoo -1->Emitted(113, 1) Source(146, 1) + SourceIndex(0) -2 >Emitted(113, 10) Source(146, 10) + SourceIndex(0) -3 >Emitted(113, 14) Source(146, 14) + SourceIndex(0) -4 >Emitted(113, 15) Source(146, 15) + SourceIndex(0) -5 >Emitted(113, 16) Source(146, 37) + SourceIndex(0) +1->Emitted(116, 1) Source(146, 1) + SourceIndex(0) +2 >Emitted(116, 10) Source(146, 10) + SourceIndex(0) +3 >Emitted(116, 14) Source(146, 14) + SourceIndex(0) +4 >Emitted(116, 15) Source(146, 15) + SourceIndex(0) +5 >Emitted(116, 16) Source(146, 37) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 >} -1->Emitted(114, 1) Source(146, 40) + SourceIndex(0) name (c9t5) -2 >Emitted(114, 2) Source(146, 41) + SourceIndex(0) name (c9t5) +1->Emitted(117, 1) Source(146, 40) + SourceIndex(0) name (c9t5) +2 >Emitted(117, 2) Source(146, 41) + SourceIndex(0) name (c9t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >; -1->Emitted(115, 1) Source(146, 41) + SourceIndex(0) -2 >Emitted(115, 2) Source(146, 42) + SourceIndex(0) +1->Emitted(118, 1) Source(146, 41) + SourceIndex(0) +2 >Emitted(118, 2) Source(146, 42) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >c9t5 3 > ( 4 > function( 5 > n -1->Emitted(116, 1) Source(147, 1) + SourceIndex(0) -2 >Emitted(116, 5) Source(147, 5) + SourceIndex(0) -3 >Emitted(116, 6) Source(147, 6) + SourceIndex(0) -4 >Emitted(116, 16) Source(147, 15) + SourceIndex(0) -5 >Emitted(116, 17) Source(147, 16) + SourceIndex(0) +1->Emitted(119, 1) Source(147, 1) + SourceIndex(0) +2 >Emitted(119, 5) Source(147, 5) + SourceIndex(0) +3 >Emitted(119, 6) Source(147, 6) + SourceIndex(0) +4 >Emitted(119, 16) Source(147, 15) + SourceIndex(0) +5 >Emitted(119, 17) Source(147, 16) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -2203,71 +2230,80 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > ; -1->Emitted(117, 5) Source(148, 5) + SourceIndex(0) -2 >Emitted(117, 11) Source(148, 11) + SourceIndex(0) -3 >Emitted(117, 12) Source(148, 18) + SourceIndex(0) -4 >Emitted(117, 13) Source(148, 19) + SourceIndex(0) -5 >Emitted(117, 15) Source(148, 21) + SourceIndex(0) -6 >Emitted(117, 16) Source(148, 22) + SourceIndex(0) -7 >Emitted(117, 17) Source(148, 23) + SourceIndex(0) +1->Emitted(120, 5) Source(148, 5) + SourceIndex(0) +2 >Emitted(120, 11) Source(148, 11) + SourceIndex(0) +3 >Emitted(120, 12) Source(148, 18) + SourceIndex(0) +4 >Emitted(120, 13) Source(148, 19) + SourceIndex(0) +5 >Emitted(120, 15) Source(148, 21) + SourceIndex(0) +6 >Emitted(120, 16) Source(148, 22) + SourceIndex(0) +7 >Emitted(120, 17) Source(148, 23) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} 3 > ) 4 > ; -1->Emitted(118, 1) Source(149, 1) + SourceIndex(0) -2 >Emitted(118, 2) Source(149, 2) + SourceIndex(0) -3 >Emitted(118, 3) Source(149, 3) + SourceIndex(0) -4 >Emitted(118, 4) Source(149, 4) + SourceIndex(0) +1->Emitted(121, 1) Source(149, 1) + SourceIndex(0) +2 >Emitted(121, 2) Source(149, 2) + SourceIndex(0) +3 >Emitted(121, 3) Source(149, 3) + SourceIndex(0) +4 >Emitted(121, 4) Source(149, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Return statement > -2 >var -3 > c10t5 -4 > : () => (n: number) => IFoo = -1->Emitted(119, 1) Source(152, 1) + SourceIndex(0) -2 >Emitted(119, 5) Source(152, 5) + SourceIndex(0) -3 >Emitted(119, 10) Source(152, 10) + SourceIndex(0) -4 >Emitted(119, 13) Source(152, 40) + SourceIndex(0) +2 > +3 >// CONTEXT: Return statement +1->Emitted(122, 1) Source(152, 1) + SourceIndex(0) +2 >Emitted(122, 1) Source(151, 1) + SourceIndex(0) +3 >Emitted(122, 29) Source(151, 29) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >var +2 > c10t5 +3 > : () => (n: number) => IFoo = +1->Emitted(123, 5) Source(152, 5) + SourceIndex(0) +2 >Emitted(123, 10) Source(152, 10) + SourceIndex(0) +3 >Emitted(123, 13) Source(152, 40) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^^^^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > 4 > function( 5 > n -1->Emitted(120, 5) Source(152, 53) + SourceIndex(0) -2 >Emitted(120, 11) Source(152, 59) + SourceIndex(0) -3 >Emitted(120, 12) Source(152, 60) + SourceIndex(0) -4 >Emitted(120, 22) Source(152, 69) + SourceIndex(0) -5 >Emitted(120, 23) Source(152, 70) + SourceIndex(0) +1->Emitted(124, 5) Source(152, 53) + SourceIndex(0) +2 >Emitted(124, 11) Source(152, 59) + SourceIndex(0) +3 >Emitted(124, 12) Source(152, 60) + SourceIndex(0) +4 >Emitted(124, 22) Source(152, 69) + SourceIndex(0) +5 >Emitted(124, 23) Source(152, 70) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2275,106 +2311,106 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(121, 9) Source(152, 74) + SourceIndex(0) -2 >Emitted(121, 15) Source(152, 80) + SourceIndex(0) -3 >Emitted(121, 16) Source(152, 87) + SourceIndex(0) -4 >Emitted(121, 17) Source(152, 88) + SourceIndex(0) -5 >Emitted(121, 19) Source(152, 90) + SourceIndex(0) -6 >Emitted(121, 20) Source(152, 91) + SourceIndex(0) -7 >Emitted(121, 21) Source(152, 91) + SourceIndex(0) +1->Emitted(125, 9) Source(152, 74) + SourceIndex(0) +2 >Emitted(125, 15) Source(152, 80) + SourceIndex(0) +3 >Emitted(125, 16) Source(152, 87) + SourceIndex(0) +4 >Emitted(125, 17) Source(152, 88) + SourceIndex(0) +5 >Emitted(125, 19) Source(152, 90) + SourceIndex(0) +6 >Emitted(125, 20) Source(152, 91) + SourceIndex(0) +7 >Emitted(125, 21) Source(152, 91) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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) -2 >Emitted(122, 6) Source(152, 93) + SourceIndex(0) -3 >Emitted(122, 7) Source(152, 93) + SourceIndex(0) +1->Emitted(126, 5) Source(152, 92) + SourceIndex(0) +2 >Emitted(126, 6) Source(152, 93) + SourceIndex(0) +3 >Emitted(126, 7) Source(152, 93) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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>Emitted(127, 2) Source(152, 95) + SourceIndex(0) +3 >Emitted(127, 3) Source(152, 96) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Newing a class > 2 >class 3 > C11t5 -1->Emitted(124, 1) Source(155, 1) + SourceIndex(0) -2 >Emitted(124, 5) Source(155, 7) + SourceIndex(0) -3 >Emitted(124, 10) Source(155, 12) + SourceIndex(0) +1->Emitted(128, 1) Source(155, 1) + SourceIndex(0) +2 >Emitted(128, 5) Source(155, 7) + SourceIndex(0) +3 >Emitted(128, 10) Source(155, 12) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^ 3 > ^^^^^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { 2 > 3 > C11t5 4 > { constructor( 5 > f: (n: number) => IFoo -1->Emitted(125, 5) Source(155, 15) + SourceIndex(0) name (C11t5) -2 >Emitted(125, 14) Source(155, 7) + SourceIndex(0) name (C11t5) -3 >Emitted(125, 19) Source(155, 12) + SourceIndex(0) name (C11t5) -4 >Emitted(125, 20) Source(155, 27) + SourceIndex(0) name (C11t5) -5 >Emitted(125, 21) Source(155, 49) + SourceIndex(0) name (C11t5) +1->Emitted(129, 5) Source(155, 15) + SourceIndex(0) name (C11t5) +2 >Emitted(129, 14) Source(155, 7) + SourceIndex(0) name (C11t5) +3 >Emitted(129, 19) Source(155, 12) + SourceIndex(0) name (C11t5) +4 >Emitted(129, 20) Source(155, 27) + SourceIndex(0) name (C11t5) +5 >Emitted(129, 21) Source(155, 49) + SourceIndex(0) name (C11t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > } -1->Emitted(126, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) -2 >Emitted(126, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) +1->Emitted(130, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) +2 >Emitted(130, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > } -1->Emitted(127, 5) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(127, 17) Source(155, 56) + SourceIndex(0) name (C11t5) +1->Emitted(131, 5) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(131, 17) Source(155, 56) + SourceIndex(0) name (C11t5) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > 4 > class C11t5 { constructor(f: (n: number) => IFoo) { } } -1->Emitted(128, 1) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(128, 2) Source(155, 56) + SourceIndex(0) name (C11t5) -3 >Emitted(128, 2) Source(155, 1) + SourceIndex(0) -4 >Emitted(128, 6) Source(155, 56) + SourceIndex(0) +1->Emitted(132, 1) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(132, 2) Source(155, 56) + SourceIndex(0) name (C11t5) +3 >Emitted(132, 2) Source(155, 1) + SourceIndex(0) +4 >Emitted(132, 6) Source(155, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >; -1->Emitted(129, 1) Source(155, 56) + SourceIndex(0) -2 >Emitted(129, 2) Source(155, 57) + SourceIndex(0) +1->Emitted(133, 1) Source(155, 56) + SourceIndex(0) +2 >Emitted(133, 2) Source(155, 57) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2394,24 +2430,24 @@ sourceFile:contextualTyping.ts 7 > ( 8 > function( 9 > n -1->Emitted(130, 1) Source(156, 1) + SourceIndex(0) -2 >Emitted(130, 5) Source(156, 5) + SourceIndex(0) -3 >Emitted(130, 6) Source(156, 6) + SourceIndex(0) -4 >Emitted(130, 9) Source(156, 9) + SourceIndex(0) -5 >Emitted(130, 13) Source(156, 13) + SourceIndex(0) -6 >Emitted(130, 18) Source(156, 18) + SourceIndex(0) -7 >Emitted(130, 19) Source(156, 19) + SourceIndex(0) -8 >Emitted(130, 29) Source(156, 28) + SourceIndex(0) -9 >Emitted(130, 30) Source(156, 29) + SourceIndex(0) +1->Emitted(134, 1) Source(156, 1) + SourceIndex(0) +2 >Emitted(134, 5) Source(156, 5) + SourceIndex(0) +3 >Emitted(134, 6) Source(156, 6) + SourceIndex(0) +4 >Emitted(134, 9) Source(156, 9) + SourceIndex(0) +5 >Emitted(134, 13) Source(156, 13) + SourceIndex(0) +6 >Emitted(134, 18) Source(156, 18) + SourceIndex(0) +7 >Emitted(134, 19) Source(156, 19) + SourceIndex(0) +8 >Emitted(134, 29) Source(156, 28) + SourceIndex(0) +9 >Emitted(134, 30) Source(156, 29) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2419,137 +2455,146 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(131, 5) Source(156, 33) + SourceIndex(0) -2 >Emitted(131, 11) Source(156, 39) + SourceIndex(0) -3 >Emitted(131, 12) Source(156, 46) + SourceIndex(0) -4 >Emitted(131, 13) Source(156, 47) + SourceIndex(0) -5 >Emitted(131, 15) Source(156, 49) + SourceIndex(0) -6 >Emitted(131, 16) Source(156, 50) + SourceIndex(0) -7 >Emitted(131, 17) Source(156, 50) + SourceIndex(0) +1->Emitted(135, 5) Source(156, 33) + SourceIndex(0) +2 >Emitted(135, 11) Source(156, 39) + SourceIndex(0) +3 >Emitted(135, 12) Source(156, 46) + SourceIndex(0) +4 >Emitted(135, 13) Source(156, 47) + SourceIndex(0) +5 >Emitted(135, 15) Source(156, 49) + SourceIndex(0) +6 >Emitted(135, 16) Source(156, 50) + SourceIndex(0) +7 >Emitted(135, 17) Source(156, 50) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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Source(156, 52) + SourceIndex(0) -3 >Emitted(132, 3) Source(156, 53) + SourceIndex(0) -4 >Emitted(132, 4) Source(156, 54) + SourceIndex(0) +1->Emitted(136, 1) Source(156, 51) + SourceIndex(0) +2 >Emitted(136, 2) Source(156, 52) + SourceIndex(0) +3 >Emitted(136, 3) Source(156, 53) + SourceIndex(0) +4 >Emitted(136, 4) Source(156, 54) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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function( -7 > s -1->Emitted(133, 1) Source(159, 1) + SourceIndex(0) -2 >Emitted(133, 5) Source(159, 5) + SourceIndex(0) -3 >Emitted(133, 10) Source(159, 10) + SourceIndex(0) -4 >Emitted(133, 13) Source(159, 37) + SourceIndex(0) -5 >Emitted(133, 14) Source(159, 38) + SourceIndex(0) -6 >Emitted(133, 24) Source(159, 47) + SourceIndex(0) -7 >Emitted(133, 25) Source(159, 48) + SourceIndex(0) +2 > +3 >// CONTEXT: Type annotated expression +1->Emitted(137, 1) Source(159, 1) + SourceIndex(0) +2 >Emitted(137, 1) Source(158, 1) + SourceIndex(0) +3 >Emitted(137, 38) Source(158, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +2 > ^^^^^ +3 > ^^^ +4 > ^ +5 > ^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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function( +6 > s +1->Emitted(138, 5) Source(159, 5) + SourceIndex(0) +2 >Emitted(138, 10) Source(159, 10) + SourceIndex(0) +3 >Emitted(138, 13) Source(159, 37) + SourceIndex(0) +4 >Emitted(138, 14) Source(159, 38) + SourceIndex(0) +5 >Emitted(138, 24) Source(159, 47) + SourceIndex(0) +6 >Emitted(138, 25) Source(159, 48) + SourceIndex(0) +--- +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > -1->Emitted(134, 5) Source(159, 52) + SourceIndex(0) -2 >Emitted(134, 11) Source(159, 58) + SourceIndex(0) -3 >Emitted(134, 12) Source(159, 59) + SourceIndex(0) -4 >Emitted(134, 13) Source(159, 60) + SourceIndex(0) -5 >Emitted(134, 14) Source(159, 60) + SourceIndex(0) +1->Emitted(139, 5) Source(159, 52) + SourceIndex(0) +2 >Emitted(139, 11) Source(159, 58) + SourceIndex(0) +3 >Emitted(139, 12) Source(159, 59) + SourceIndex(0) +4 >Emitted(139, 13) Source(159, 60) + SourceIndex(0) +5 >Emitted(139, 14) Source(159, 60) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ) 4 > ; -1->Emitted(135, 1) Source(159, 61) + SourceIndex(0) -2 >Emitted(135, 2) Source(159, 62) + SourceIndex(0) -3 >Emitted(135, 3) Source(159, 63) + SourceIndex(0) -4 >Emitted(135, 4) Source(159, 64) + SourceIndex(0) +1->Emitted(140, 1) Source(159, 61) + SourceIndex(0) +2 >Emitted(140, 2) Source(159, 62) + SourceIndex(0) +3 >Emitted(140, 3) Source(159, 63) + SourceIndex(0) +4 >Emitted(140, 4) Source(159, 64) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t2 4 > = 5 > ( -1->Emitted(136, 1) Source(160, 1) + SourceIndex(0) -2 >Emitted(136, 5) Source(160, 5) + SourceIndex(0) -3 >Emitted(136, 10) Source(160, 10) + SourceIndex(0) -4 >Emitted(136, 13) Source(160, 20) + SourceIndex(0) -5 >Emitted(136, 14) Source(160, 21) + SourceIndex(0) +1->Emitted(141, 1) Source(160, 1) + SourceIndex(0) +2 >Emitted(141, 5) Source(160, 5) + SourceIndex(0) +3 >Emitted(141, 10) Source(160, 10) + SourceIndex(0) +4 >Emitted(141, 13) Source(160, 20) + SourceIndex(0) +5 >Emitted(141, 14) Source(160, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > n 3 > : 4 > 1 -1->Emitted(137, 5) Source(161, 5) + SourceIndex(0) -2 >Emitted(137, 6) Source(161, 6) + SourceIndex(0) -3 >Emitted(137, 8) Source(161, 8) + SourceIndex(0) -4 >Emitted(137, 9) Source(161, 9) + SourceIndex(0) +1->Emitted(142, 5) Source(161, 5) + SourceIndex(0) +2 >Emitted(142, 6) Source(161, 6) + SourceIndex(0) +3 >Emitted(142, 8) Source(161, 8) + SourceIndex(0) +4 >Emitted(142, 9) Source(161, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > ; -1->Emitted(138, 2) Source(162, 2) + SourceIndex(0) -2 >Emitted(138, 3) Source(162, 3) + SourceIndex(0) -3 >Emitted(138, 4) Source(162, 4) + SourceIndex(0) +1->Emitted(143, 2) Source(162, 2) + SourceIndex(0) +2 >Emitted(143, 3) Source(162, 3) + SourceIndex(0) +3 >Emitted(143, 4) Source(162, 4) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2557,36 +2602,36 @@ sourceFile:contextualTyping.ts 4 > = 5 > [] 6 > ; -1->Emitted(139, 1) Source(163, 1) + SourceIndex(0) -2 >Emitted(139, 5) Source(163, 5) + SourceIndex(0) -3 >Emitted(139, 10) Source(163, 10) + SourceIndex(0) -4 >Emitted(139, 13) Source(163, 24) + SourceIndex(0) -5 >Emitted(139, 15) Source(163, 26) + SourceIndex(0) -6 >Emitted(139, 16) Source(163, 27) + SourceIndex(0) +1->Emitted(144, 1) Source(163, 1) + SourceIndex(0) +2 >Emitted(144, 5) Source(163, 5) + SourceIndex(0) +3 >Emitted(144, 10) Source(163, 10) + SourceIndex(0) +4 >Emitted(144, 13) Source(163, 24) + SourceIndex(0) +5 >Emitted(144, 15) Source(163, 26) + SourceIndex(0) +6 >Emitted(144, 16) Source(163, 27) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t4 4 > = <() => IFoo> -1->Emitted(140, 1) Source(164, 1) + SourceIndex(0) -2 >Emitted(140, 5) Source(164, 5) + SourceIndex(0) -3 >Emitted(140, 10) Source(164, 10) + SourceIndex(0) -4 >Emitted(140, 13) Source(164, 26) + SourceIndex(0) +1->Emitted(145, 1) Source(164, 1) + SourceIndex(0) +2 >Emitted(145, 5) Source(164, 5) + SourceIndex(0) +3 >Emitted(145, 10) Source(164, 10) + SourceIndex(0) +4 >Emitted(145, 13) Source(164, 26) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->function() { 2 > return 3 > @@ -2594,32 +2639,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(141, 5) Source(164, 39) + SourceIndex(0) -2 >Emitted(141, 11) Source(164, 45) + SourceIndex(0) -3 >Emitted(141, 12) Source(164, 52) + SourceIndex(0) -4 >Emitted(141, 13) Source(164, 53) + SourceIndex(0) -5 >Emitted(141, 15) Source(164, 55) + SourceIndex(0) -6 >Emitted(141, 16) Source(164, 56) + SourceIndex(0) -7 >Emitted(141, 17) Source(164, 56) + SourceIndex(0) +1->Emitted(146, 5) Source(164, 39) + SourceIndex(0) +2 >Emitted(146, 11) Source(164, 45) + SourceIndex(0) +3 >Emitted(146, 12) Source(164, 52) + SourceIndex(0) +4 >Emitted(146, 13) Source(164, 53) + SourceIndex(0) +5 >Emitted(146, 15) Source(164, 55) + SourceIndex(0) +6 >Emitted(146, 16) Source(164, 56) + SourceIndex(0) +7 >Emitted(146, 17) Source(164, 56) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(142, 1) Source(164, 57) + SourceIndex(0) -2 >Emitted(142, 2) Source(164, 58) + SourceIndex(0) -3 >Emitted(142, 3) Source(164, 59) + SourceIndex(0) +1->Emitted(147, 1) Source(164, 57) + SourceIndex(0) +2 >Emitted(147, 2) Source(164, 58) + SourceIndex(0) +3 >Emitted(147, 3) Source(164, 59) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2627,21 +2672,21 @@ sourceFile:contextualTyping.ts 4 > = <(n: number) => IFoo> 5 > function( 6 > n -1->Emitted(143, 1) Source(165, 1) + SourceIndex(0) -2 >Emitted(143, 5) Source(165, 5) + SourceIndex(0) -3 >Emitted(143, 10) Source(165, 10) + SourceIndex(0) -4 >Emitted(143, 13) Source(165, 35) + SourceIndex(0) -5 >Emitted(143, 23) Source(165, 44) + SourceIndex(0) -6 >Emitted(143, 24) Source(165, 45) + SourceIndex(0) +1->Emitted(148, 1) Source(165, 1) + SourceIndex(0) +2 >Emitted(148, 5) Source(165, 5) + SourceIndex(0) +3 >Emitted(148, 10) Source(165, 10) + SourceIndex(0) +4 >Emitted(148, 13) Source(165, 35) + SourceIndex(0) +5 >Emitted(148, 23) Source(165, 44) + SourceIndex(0) +6 >Emitted(148, 24) Source(165, 45) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2649,26 +2694,26 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(144, 5) Source(165, 49) + SourceIndex(0) -2 >Emitted(144, 11) Source(165, 55) + SourceIndex(0) -3 >Emitted(144, 12) Source(165, 62) + SourceIndex(0) -4 >Emitted(144, 13) Source(165, 63) + SourceIndex(0) -5 >Emitted(144, 15) Source(165, 65) + SourceIndex(0) -6 >Emitted(144, 16) Source(165, 66) + SourceIndex(0) -7 >Emitted(144, 17) Source(165, 66) + SourceIndex(0) +1->Emitted(149, 5) Source(165, 49) + SourceIndex(0) +2 >Emitted(149, 11) Source(165, 55) + SourceIndex(0) +3 >Emitted(149, 12) Source(165, 62) + SourceIndex(0) +4 >Emitted(149, 13) Source(165, 63) + SourceIndex(0) +5 >Emitted(149, 15) Source(165, 65) + SourceIndex(0) +6 >Emitted(149, 16) Source(165, 66) + SourceIndex(0) +7 >Emitted(149, 17) Source(165, 66) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(145, 1) Source(165, 67) + SourceIndex(0) -2 >Emitted(145, 2) Source(165, 68) + SourceIndex(0) -3 >Emitted(145, 3) Source(165, 69) + SourceIndex(0) +1->Emitted(150, 1) Source(165, 67) + SourceIndex(0) +2 >Emitted(150, 2) Source(165, 68) + SourceIndex(0) +3 >Emitted(150, 3) Source(165, 69) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -2676,7 +2721,7 @@ sourceFile:contextualTyping.ts 6 > ^ 7 > ^^ 8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2686,23 +2731,23 @@ sourceFile:contextualTyping.ts 6 > n 7 > , 8 > s -1->Emitted(146, 1) Source(166, 1) + SourceIndex(0) -2 >Emitted(146, 5) Source(166, 5) + SourceIndex(0) -3 >Emitted(146, 10) Source(166, 10) + SourceIndex(0) -4 >Emitted(146, 13) Source(166, 46) + SourceIndex(0) -5 >Emitted(146, 23) Source(166, 55) + SourceIndex(0) -6 >Emitted(146, 24) Source(166, 56) + SourceIndex(0) -7 >Emitted(146, 26) Source(166, 58) + SourceIndex(0) -8 >Emitted(146, 27) Source(166, 59) + SourceIndex(0) +1->Emitted(151, 1) Source(166, 1) + SourceIndex(0) +2 >Emitted(151, 5) Source(166, 5) + SourceIndex(0) +3 >Emitted(151, 10) Source(166, 10) + SourceIndex(0) +4 >Emitted(151, 13) Source(166, 46) + SourceIndex(0) +5 >Emitted(151, 23) Source(166, 55) + SourceIndex(0) +6 >Emitted(151, 24) Source(166, 56) + SourceIndex(0) +7 >Emitted(151, 26) Source(166, 58) + SourceIndex(0) +8 >Emitted(151, 27) Source(166, 59) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -2710,32 +2755,32 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > -1->Emitted(147, 5) Source(166, 63) + SourceIndex(0) -2 >Emitted(147, 11) Source(166, 69) + SourceIndex(0) -3 >Emitted(147, 12) Source(166, 76) + SourceIndex(0) -4 >Emitted(147, 13) Source(166, 77) + SourceIndex(0) -5 >Emitted(147, 15) Source(166, 79) + SourceIndex(0) -6 >Emitted(147, 16) Source(166, 80) + SourceIndex(0) -7 >Emitted(147, 17) Source(166, 80) + SourceIndex(0) +1->Emitted(152, 5) Source(166, 63) + SourceIndex(0) +2 >Emitted(152, 11) Source(166, 69) + SourceIndex(0) +3 >Emitted(152, 12) Source(166, 76) + SourceIndex(0) +4 >Emitted(152, 13) Source(166, 77) + SourceIndex(0) +5 >Emitted(152, 15) Source(166, 79) + SourceIndex(0) +6 >Emitted(152, 16) Source(166, 80) + SourceIndex(0) +7 >Emitted(152, 17) Source(166, 80) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(148, 1) Source(166, 81) + SourceIndex(0) -2 >Emitted(148, 2) Source(166, 82) + SourceIndex(0) -3 >Emitted(148, 3) Source(166, 83) + SourceIndex(0) +1->Emitted(153, 1) Source(166, 81) + SourceIndex(0) +2 >Emitted(153, 2) Source(166, 82) + SourceIndex(0) +3 >Emitted(153, 3) Source(166, 83) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2746,48 +2791,48 @@ sourceFile:contextualTyping.ts > }> 5 > function( 6 > n:number -1->Emitted(149, 1) Source(167, 1) + SourceIndex(0) -2 >Emitted(149, 5) Source(167, 5) + SourceIndex(0) -3 >Emitted(149, 10) Source(167, 10) + SourceIndex(0) -4 >Emitted(149, 13) Source(170, 4) + SourceIndex(0) -5 >Emitted(149, 23) Source(170, 13) + SourceIndex(0) -6 >Emitted(149, 24) Source(170, 21) + SourceIndex(0) +1->Emitted(154, 1) Source(167, 1) + SourceIndex(0) +2 >Emitted(154, 5) Source(167, 5) + SourceIndex(0) +3 >Emitted(154, 10) Source(167, 10) + SourceIndex(0) +4 >Emitted(154, 13) Source(170, 4) + SourceIndex(0) +5 >Emitted(154, 23) Source(170, 13) + SourceIndex(0) +6 >Emitted(154, 24) Source(170, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > -1->Emitted(150, 5) Source(170, 25) + SourceIndex(0) -2 >Emitted(150, 11) Source(170, 31) + SourceIndex(0) -3 >Emitted(150, 12) Source(170, 32) + SourceIndex(0) -4 >Emitted(150, 13) Source(170, 33) + SourceIndex(0) -5 >Emitted(150, 14) Source(170, 33) + SourceIndex(0) +1->Emitted(155, 5) Source(170, 25) + SourceIndex(0) +2 >Emitted(155, 11) Source(170, 31) + SourceIndex(0) +3 >Emitted(155, 12) Source(170, 32) + SourceIndex(0) +4 >Emitted(155, 13) Source(170, 33) + SourceIndex(0) +5 >Emitted(155, 14) Source(170, 33) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(151, 1) Source(170, 34) + SourceIndex(0) -2 >Emitted(151, 2) Source(170, 35) + SourceIndex(0) -3 >Emitted(151, 3) Source(170, 36) + SourceIndex(0) +1->Emitted(156, 1) Source(170, 34) + SourceIndex(0) +2 >Emitted(156, 2) Source(170, 35) + SourceIndex(0) +3 >Emitted(156, 3) Source(170, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ 5 > ^^^^^^^^^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -2796,42 +2841,42 @@ sourceFile:contextualTyping.ts 4 > = <(n: number, s: string) => number> 5 > function( 6 > n -1->Emitted(152, 1) Source(172, 1) + SourceIndex(0) -2 >Emitted(152, 5) Source(172, 5) + SourceIndex(0) -3 >Emitted(152, 10) Source(172, 10) + SourceIndex(0) -4 >Emitted(152, 13) Source(172, 48) + SourceIndex(0) -5 >Emitted(152, 23) Source(172, 57) + SourceIndex(0) -6 >Emitted(152, 24) Source(172, 58) + SourceIndex(0) +1->Emitted(157, 1) Source(172, 1) + SourceIndex(0) +2 >Emitted(157, 5) Source(172, 5) + SourceIndex(0) +3 >Emitted(157, 10) Source(172, 10) + SourceIndex(0) +4 >Emitted(157, 13) Source(172, 48) + SourceIndex(0) +5 >Emitted(157, 23) Source(172, 57) + SourceIndex(0) +6 >Emitted(157, 24) Source(172, 58) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > n 5 > ; -1->Emitted(153, 5) Source(172, 62) + SourceIndex(0) -2 >Emitted(153, 11) Source(172, 68) + SourceIndex(0) -3 >Emitted(153, 12) Source(172, 69) + SourceIndex(0) -4 >Emitted(153, 13) Source(172, 70) + SourceIndex(0) -5 >Emitted(153, 14) Source(172, 71) + SourceIndex(0) +1->Emitted(158, 5) Source(172, 62) + SourceIndex(0) +2 >Emitted(158, 11) Source(172, 68) + SourceIndex(0) +3 >Emitted(158, 12) Source(172, 69) + SourceIndex(0) +4 >Emitted(158, 13) Source(172, 70) + SourceIndex(0) +5 >Emitted(158, 14) Source(172, 71) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > 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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ; -1->Emitted(154, 1) Source(172, 72) + SourceIndex(0) -2 >Emitted(154, 2) Source(172, 73) + SourceIndex(0) -3 >Emitted(154, 3) Source(172, 74) + SourceIndex(0) +1->Emitted(159, 1) Source(172, 72) + SourceIndex(0) +2 >Emitted(159, 2) Source(172, 73) + SourceIndex(0) +3 >Emitted(159, 3) Source(172, 74) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^ 4 > ^^^ @@ -2841,7 +2886,7 @@ sourceFile:contextualTyping.ts 8 > ^^ 9 > ^ 10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2853,18 +2898,18 @@ sourceFile:contextualTyping.ts 8 > [] 9 > ] 10> ; -1->Emitted(155, 1) Source(173, 1) + SourceIndex(0) -2 >Emitted(155, 5) Source(173, 5) + SourceIndex(0) -3 >Emitted(155, 10) Source(173, 10) + SourceIndex(0) -4 >Emitted(155, 13) Source(173, 26) + SourceIndex(0) -5 >Emitted(155, 14) Source(173, 27) + SourceIndex(0) -6 >Emitted(155, 16) Source(173, 29) + SourceIndex(0) -7 >Emitted(155, 18) Source(173, 30) + SourceIndex(0) -8 >Emitted(155, 20) Source(173, 32) + SourceIndex(0) -9 >Emitted(155, 21) Source(173, 33) + SourceIndex(0) -10>Emitted(155, 22) Source(173, 34) + SourceIndex(0) +1->Emitted(160, 1) Source(173, 1) + SourceIndex(0) +2 >Emitted(160, 5) Source(173, 5) + SourceIndex(0) +3 >Emitted(160, 10) Source(173, 10) + SourceIndex(0) +4 >Emitted(160, 13) Source(173, 26) + SourceIndex(0) +5 >Emitted(160, 14) Source(173, 27) + SourceIndex(0) +6 >Emitted(160, 16) Source(173, 29) + SourceIndex(0) +7 >Emitted(160, 18) Source(173, 30) + SourceIndex(0) +8 >Emitted(160, 20) Source(173, 32) + SourceIndex(0) +9 >Emitted(160, 21) Source(173, 33) + SourceIndex(0) +10>Emitted(160, 22) Source(173, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ @@ -2878,7 +2923,7 @@ sourceFile:contextualTyping.ts 12> ^ 13> ^ 14> ^ -15> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2894,22 +2939,22 @@ sourceFile:contextualTyping.ts 12> ) 13> ] 14> ; -1->Emitted(156, 1) Source(174, 1) + SourceIndex(0) -2 >Emitted(156, 5) Source(174, 5) + SourceIndex(0) -3 >Emitted(156, 11) Source(174, 11) + SourceIndex(0) -4 >Emitted(156, 14) Source(174, 23) + SourceIndex(0) -5 >Emitted(156, 15) Source(174, 30) + SourceIndex(0) -6 >Emitted(156, 16) Source(174, 31) + SourceIndex(0) -7 >Emitted(156, 18) Source(174, 33) + SourceIndex(0) -8 >Emitted(156, 19) Source(174, 34) + SourceIndex(0) -9 >Emitted(156, 21) Source(174, 41) + SourceIndex(0) -10>Emitted(156, 22) Source(174, 42) + SourceIndex(0) -11>Emitted(156, 24) Source(174, 44) + SourceIndex(0) -12>Emitted(156, 25) Source(174, 45) + SourceIndex(0) -13>Emitted(156, 26) Source(174, 46) + SourceIndex(0) -14>Emitted(156, 27) Source(174, 47) + SourceIndex(0) +1->Emitted(161, 1) Source(174, 1) + SourceIndex(0) +2 >Emitted(161, 5) Source(174, 5) + SourceIndex(0) +3 >Emitted(161, 11) Source(174, 11) + SourceIndex(0) +4 >Emitted(161, 14) Source(174, 23) + SourceIndex(0) +5 >Emitted(161, 15) Source(174, 30) + SourceIndex(0) +6 >Emitted(161, 16) Source(174, 31) + SourceIndex(0) +7 >Emitted(161, 18) Source(174, 33) + SourceIndex(0) +8 >Emitted(161, 19) Source(174, 34) + SourceIndex(0) +9 >Emitted(161, 21) Source(174, 41) + SourceIndex(0) +10>Emitted(161, 22) Source(174, 42) + SourceIndex(0) +11>Emitted(161, 24) Source(174, 44) + SourceIndex(0) +12>Emitted(161, 25) Source(174, 45) + SourceIndex(0) +13>Emitted(161, 26) Source(174, 46) + SourceIndex(0) +14>Emitted(161, 27) Source(174, 47) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ @@ -2918,7 +2963,7 @@ sourceFile:context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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var @@ -2929,69 +2974,69 @@ sourceFile:contextualTyping.ts 7 > n 8 > , 9 > s -1->Emitted(157, 1) Source(175, 1) + SourceIndex(0) -2 >Emitted(157, 5) Source(175, 5) + SourceIndex(0) -3 >Emitted(157, 11) Source(175, 11) + SourceIndex(0) -4 >Emitted(157, 14) Source(175, 52) + SourceIndex(0) -5 >Emitted(157, 15) Source(175, 53) + SourceIndex(0) -6 >Emitted(157, 25) Source(175, 62) + SourceIndex(0) -7 >Emitted(157, 26) Source(175, 63) + SourceIndex(0) -8 >Emitted(157, 28) Source(175, 65) + SourceIndex(0) -9 >Emitted(157, 29) Source(175, 66) + SourceIndex(0) +1->Emitted(162, 1) Source(175, 1) + SourceIndex(0) +2 >Emitted(162, 5) Source(175, 5) + SourceIndex(0) +3 >Emitted(162, 11) Source(175, 11) + SourceIndex(0) +4 >Emitted(162, 14) Source(175, 52) + SourceIndex(0) +5 >Emitted(162, 15) Source(175, 53) + SourceIndex(0) +6 >Emitted(162, 25) Source(175, 62) + SourceIndex(0) +7 >Emitted(162, 26) Source(175, 63) + SourceIndex(0) +8 >Emitted(162, 28) Source(175, 65) + SourceIndex(0) +9 >Emitted(162, 29) Source(175, 66) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > 4 > s 5 > ; -1->Emitted(158, 5) Source(175, 70) + SourceIndex(0) -2 >Emitted(158, 11) Source(175, 76) + SourceIndex(0) -3 >Emitted(158, 12) Source(175, 77) + SourceIndex(0) -4 >Emitted(158, 13) Source(175, 78) + SourceIndex(0) -5 >Emitted(158, 14) Source(175, 79) + SourceIndex(0) +1->Emitted(163, 5) Source(175, 70) + SourceIndex(0) +2 >Emitted(163, 11) Source(175, 76) + SourceIndex(0) +3 >Emitted(163, 12) Source(175, 77) + SourceIndex(0) +4 >Emitted(163, 13) Source(175, 78) + SourceIndex(0) +5 >Emitted(163, 14) Source(175, 79) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > ] 4 > ; -1->Emitted(159, 1) Source(175, 80) + SourceIndex(0) -2 >Emitted(159, 2) Source(175, 81) + SourceIndex(0) -3 >Emitted(159, 3) Source(175, 82) + SourceIndex(0) -4 >Emitted(159, 4) Source(175, 83) + SourceIndex(0) +1->Emitted(164, 1) Source(175, 80) + SourceIndex(0) +2 >Emitted(164, 2) Source(175, 81) + SourceIndex(0) +3 >Emitted(164, 3) Source(175, 82) + SourceIndex(0) +4 >Emitted(164, 4) Source(175, 83) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t12 4 > = -1->Emitted(160, 1) Source(176, 1) + SourceIndex(0) -2 >Emitted(160, 5) Source(176, 5) + SourceIndex(0) -3 >Emitted(160, 11) Source(176, 11) + SourceIndex(0) -4 >Emitted(160, 14) Source(176, 21) + SourceIndex(0) +1->Emitted(165, 1) Source(176, 1) + SourceIndex(0) +2 >Emitted(165, 5) Source(176, 5) + SourceIndex(0) +3 >Emitted(165, 11) Source(176, 11) + SourceIndex(0) +4 >Emitted(165, 14) Source(176, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > foo @@ -2999,48 +3044,48 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(161, 5) Source(177, 5) + SourceIndex(0) -2 >Emitted(161, 8) Source(177, 8) + SourceIndex(0) -3 >Emitted(161, 10) Source(177, 16) + SourceIndex(0) -4 >Emitted(161, 11) Source(177, 17) + SourceIndex(0) -5 >Emitted(161, 13) Source(177, 19) + SourceIndex(0) -6 >Emitted(161, 14) Source(177, 20) + SourceIndex(0) +1->Emitted(166, 5) Source(177, 5) + SourceIndex(0) +2 >Emitted(166, 8) Source(177, 8) + SourceIndex(0) +3 >Emitted(166, 10) Source(177, 16) + SourceIndex(0) +4 >Emitted(166, 11) Source(177, 17) + SourceIndex(0) +5 >Emitted(166, 13) Source(177, 19) + SourceIndex(0) +6 >Emitted(166, 14) Source(177, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > -1->Emitted(162, 2) Source(178, 2) + SourceIndex(0) -2 >Emitted(162, 3) Source(178, 2) + SourceIndex(0) +1->Emitted(167, 2) Source(178, 2) + SourceIndex(0) +2 >Emitted(167, 3) Source(178, 2) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t13 4 > = 5 > ( -1->Emitted(163, 1) Source(179, 1) + SourceIndex(0) -2 >Emitted(163, 5) Source(179, 5) + SourceIndex(0) -3 >Emitted(163, 11) Source(179, 11) + SourceIndex(0) -4 >Emitted(163, 14) Source(179, 21) + SourceIndex(0) -5 >Emitted(163, 15) Source(179, 22) + SourceIndex(0) +1->Emitted(168, 1) Source(179, 1) + SourceIndex(0) +2 >Emitted(168, 5) Source(179, 5) + SourceIndex(0) +3 >Emitted(168, 11) Source(179, 11) + SourceIndex(0) +4 >Emitted(168, 14) Source(179, 21) + SourceIndex(0) +5 >Emitted(168, 15) Source(179, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > f @@ -3049,104 +3094,104 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(164, 5) Source(180, 5) + SourceIndex(0) -2 >Emitted(164, 6) Source(180, 6) + SourceIndex(0) -3 >Emitted(164, 8) Source(180, 8) + SourceIndex(0) -4 >Emitted(164, 18) Source(180, 17) + SourceIndex(0) -5 >Emitted(164, 19) Source(180, 18) + SourceIndex(0) -6 >Emitted(164, 21) Source(180, 20) + SourceIndex(0) -7 >Emitted(164, 22) Source(180, 21) + SourceIndex(0) +1->Emitted(169, 5) Source(180, 5) + SourceIndex(0) +2 >Emitted(169, 6) Source(180, 6) + SourceIndex(0) +3 >Emitted(169, 8) Source(180, 8) + SourceIndex(0) +4 >Emitted(169, 18) Source(180, 17) + SourceIndex(0) +5 >Emitted(169, 19) Source(180, 18) + SourceIndex(0) +6 >Emitted(169, 21) Source(180, 20) + SourceIndex(0) +7 >Emitted(169, 22) Source(180, 21) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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180, 32) + SourceIndex(0) -4 >Emitted(165, 17) Source(180, 33) + SourceIndex(0) -5 >Emitted(165, 18) Source(180, 34) + SourceIndex(0) +1->Emitted(170, 9) Source(180, 25) + SourceIndex(0) +2 >Emitted(170, 15) Source(180, 31) + SourceIndex(0) +3 >Emitted(170, 16) Source(180, 32) + SourceIndex(0) +4 >Emitted(170, 17) Source(180, 33) + SourceIndex(0) +5 >Emitted(170, 18) Source(180, 34) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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0) +1->Emitted(171, 5) Source(180, 35) + SourceIndex(0) +2 >Emitted(171, 6) Source(180, 36) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(167, 2) Source(181, 2) + SourceIndex(0) -2 >Emitted(167, 3) Source(181, 3) + SourceIndex(0) -3 >Emitted(167, 4) Source(181, 3) + SourceIndex(0) +1->Emitted(172, 2) Source(181, 2) + SourceIndex(0) +2 >Emitted(172, 3) Source(181, 3) + SourceIndex(0) +3 >Emitted(172, 4) Source(181, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^^^^ 4 > ^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >var 3 > c12t14 4 > = 5 > ( -1->Emitted(168, 1) Source(182, 1) + SourceIndex(0) -2 >Emitted(168, 5) Source(182, 5) + SourceIndex(0) -3 >Emitted(168, 11) Source(182, 11) + SourceIndex(0) -4 >Emitted(168, 14) Source(182, 21) + SourceIndex(0) -5 >Emitted(168, 15) Source(182, 22) + SourceIndex(0) +1->Emitted(173, 1) Source(182, 1) + SourceIndex(0) +2 >Emitted(173, 5) Source(182, 5) + SourceIndex(0) +3 >Emitted(173, 11) Source(182, 11) + SourceIndex(0) +4 >Emitted(173, 14) Source(182, 21) + SourceIndex(0) +5 >Emitted(173, 15) Source(182, 22) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > a 3 > : 4 > [] -1->Emitted(169, 5) Source(183, 5) + SourceIndex(0) -2 >Emitted(169, 6) Source(183, 6) + SourceIndex(0) -3 >Emitted(169, 8) Source(183, 8) + SourceIndex(0) -4 >Emitted(169, 10) Source(183, 10) + SourceIndex(0) +1->Emitted(174, 5) Source(183, 5) + SourceIndex(0) +2 >Emitted(174, 6) Source(183, 6) + SourceIndex(0) +3 >Emitted(174, 8) Source(183, 8) + SourceIndex(0) +4 >Emitted(174, 10) Source(183, 10) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> >} 2 > ) 3 > -1->Emitted(170, 2) Source(184, 2) + SourceIndex(0) -2 >Emitted(170, 3) Source(184, 3) + SourceIndex(0) -3 >Emitted(170, 4) Source(184, 3) + SourceIndex(0) +1->Emitted(175, 2) Source(184, 2) + SourceIndex(0) +2 >Emitted(175, 3) Source(184, 3) + SourceIndex(0) +3 >Emitted(175, 4) Source(184, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^^^^^ 3 > ^^^ 4 > ^ 5 > ^ 6 > ^^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >// CONTEXT: Contextual typing declarations @@ -3161,22 +3206,22 @@ sourceFile:contextualTyping.ts 5 > a 6 > , 7 > b -1->Emitted(171, 1) Source(191, 1) + SourceIndex(0) -2 >Emitted(171, 10) Source(191, 10) + SourceIndex(0) -3 >Emitted(171, 13) Source(191, 13) + SourceIndex(0) -4 >Emitted(171, 14) Source(191, 14) + SourceIndex(0) -5 >Emitted(171, 15) Source(191, 15) + SourceIndex(0) -6 >Emitted(171, 17) Source(191, 16) + SourceIndex(0) -7 >Emitted(171, 18) Source(191, 17) + SourceIndex(0) +1->Emitted(176, 1) Source(191, 1) + SourceIndex(0) +2 >Emitted(176, 10) Source(191, 10) + SourceIndex(0) +3 >Emitted(176, 13) Source(191, 13) + SourceIndex(0) +4 >Emitted(176, 14) Source(191, 14) + SourceIndex(0) +5 >Emitted(176, 15) Source(191, 15) + SourceIndex(0) +6 >Emitted(176, 17) Source(191, 16) + SourceIndex(0) +7 >Emitted(176, 18) Source(191, 17) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { 2 > return 3 > @@ -3184,23 +3229,23 @@ sourceFile:contextualTyping.ts 5 > + 6 > b 7 > ; -1->Emitted(172, 5) Source(191, 21) + SourceIndex(0) name (EF1) -2 >Emitted(172, 11) Source(191, 27) + SourceIndex(0) name (EF1) -3 >Emitted(172, 12) Source(191, 28) + SourceIndex(0) name (EF1) -4 >Emitted(172, 13) Source(191, 29) + SourceIndex(0) name (EF1) -5 >Emitted(172, 16) Source(191, 30) + SourceIndex(0) name (EF1) -6 >Emitted(172, 17) Source(191, 31) + SourceIndex(0) name (EF1) -7 >Emitted(172, 18) Source(191, 32) + SourceIndex(0) name (EF1) +1->Emitted(177, 5) Source(191, 21) + SourceIndex(0) name (EF1) +2 >Emitted(177, 11) Source(191, 27) + SourceIndex(0) name (EF1) +3 >Emitted(177, 12) Source(191, 28) + SourceIndex(0) name (EF1) +4 >Emitted(177, 13) Source(191, 29) + SourceIndex(0) name (EF1) +5 >Emitted(177, 16) Source(191, 30) + SourceIndex(0) name (EF1) +6 >Emitted(177, 17) Source(191, 31) + SourceIndex(0) name (EF1) +7 >Emitted(177, 18) Source(191, 32) + SourceIndex(0) name (EF1) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} -1->Emitted(173, 1) Source(191, 33) + SourceIndex(0) name (EF1) -2 >Emitted(173, 2) Source(191, 34) + SourceIndex(0) name (EF1) +1->Emitted(178, 1) Source(191, 33) + SourceIndex(0) name (EF1) +2 >Emitted(178, 2) Source(191, 34) + SourceIndex(0) name (EF1) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^^^ 4 > ^^^ @@ -3211,7 +3256,7 @@ sourceFile:contextualTyping.ts 9 > ^ 10> ^ 11> ^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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225,26 +3270,26 @@ sourceFile:contextualTyping.ts 9 > 2 10> ) 11> ; -1->Emitted(174, 1) Source(193, 1) + SourceIndex(0) -2 >Emitted(174, 5) Source(193, 5) + SourceIndex(0) -3 >Emitted(174, 8) Source(193, 8) + SourceIndex(0) -4 >Emitted(174, 11) Source(193, 11) + SourceIndex(0) -5 >Emitted(174, 14) Source(193, 14) + SourceIndex(0) -6 >Emitted(174, 15) Source(193, 15) + SourceIndex(0) -7 >Emitted(174, 16) Source(193, 16) + SourceIndex(0) -8 >Emitted(174, 18) Source(193, 17) + SourceIndex(0) -9 >Emitted(174, 19) Source(193, 18) + SourceIndex(0) -10>Emitted(174, 20) Source(193, 19) + SourceIndex(0) -11>Emitted(174, 21) Source(193, 20) + SourceIndex(0) +1->Emitted(179, 1) Source(193, 1) + SourceIndex(0) +2 >Emitted(179, 5) Source(193, 5) + SourceIndex(0) +3 >Emitted(179, 8) Source(193, 8) + SourceIndex(0) +4 >Emitted(179, 11) Source(193, 11) + SourceIndex(0) +5 >Emitted(179, 14) Source(193, 14) + SourceIndex(0) +6 >Emitted(179, 15) Source(193, 15) + SourceIndex(0) +7 >Emitted(179, 16) Source(193, 16) + SourceIndex(0) +8 >Emitted(179, 18) Source(193, 17) + SourceIndex(0) +9 >Emitted(179, 19) Source(193, 18) + SourceIndex(0) +10>Emitted(179, 20) Source(193, 19) + SourceIndex(0) +11>Emitted(179, 21) Source(193, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3266,22 +3311,22 @@ sourceFile:contextualTyping.ts 5 > x 6 > , 7 > y -1->Emitted(175, 1) Source(207, 1) + SourceIndex(0) -2 >Emitted(175, 10) Source(207, 10) + SourceIndex(0) -3 >Emitted(175, 15) Source(207, 15) + SourceIndex(0) -4 >Emitted(175, 16) Source(207, 16) + SourceIndex(0) -5 >Emitted(175, 17) Source(207, 17) + SourceIndex(0) -6 >Emitted(175, 19) Source(207, 19) + SourceIndex(0) -7 >Emitted(175, 20) Source(207, 20) + SourceIndex(0) +1->Emitted(180, 1) Source(207, 1) + SourceIndex(0) +2 >Emitted(180, 10) Source(207, 10) + SourceIndex(0) +3 >Emitted(180, 15) Source(207, 15) + SourceIndex(0) +4 >Emitted(180, 16) Source(207, 16) + SourceIndex(0) +5 >Emitted(180, 17) Source(207, 17) + SourceIndex(0) +6 >Emitted(180, 19) Source(207, 19) + SourceIndex(0) +7 >Emitted(180, 20) Source(207, 20) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > this @@ -3290,22 +3335,22 @@ sourceFile:contextualTyping.ts 5 > = 6 > x 7 > ; -1->Emitted(176, 5) Source(208, 5) + SourceIndex(0) name (Point) -2 >Emitted(176, 9) Source(208, 9) + SourceIndex(0) name (Point) -3 >Emitted(176, 10) Source(208, 10) + SourceIndex(0) name (Point) -4 >Emitted(176, 11) Source(208, 11) + SourceIndex(0) name (Point) -5 >Emitted(176, 14) Source(208, 14) + SourceIndex(0) name (Point) -6 >Emitted(176, 15) Source(208, 15) + SourceIndex(0) name (Point) -7 >Emitted(176, 16) Source(208, 16) + SourceIndex(0) name (Point) +1->Emitted(181, 5) Source(208, 5) + SourceIndex(0) name (Point) +2 >Emitted(181, 9) Source(208, 9) + SourceIndex(0) name (Point) +3 >Emitted(181, 10) Source(208, 10) + SourceIndex(0) name (Point) +4 >Emitted(181, 11) Source(208, 11) + SourceIndex(0) name (Point) +5 >Emitted(181, 14) Source(208, 14) + SourceIndex(0) name (Point) +6 >Emitted(181, 15) Source(208, 15) + SourceIndex(0) name (Point) +7 >Emitted(181, 16) Source(208, 16) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^ 3 > ^ 4 > ^ 5 > ^^^ 6 > ^ 7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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) + SourceIndex(0) name (Point) -2 >Emitted(177, 9) Source(209, 9) + SourceIndex(0) name (Point) -3 >Emitted(177, 10) Source(209, 10) + SourceIndex(0) name (Point) -4 >Emitted(177, 11) Source(209, 11) + SourceIndex(0) name (Point) -5 >Emitted(177, 14) Source(209, 14) + SourceIndex(0) name (Point) -6 >Emitted(177, 15) Source(209, 15) + SourceIndex(0) name (Point) -7 >Emitted(177, 16) Source(209, 16) + SourceIndex(0) name (Point) +1->Emitted(182, 5) Source(209, 5) + SourceIndex(0) name (Point) +2 >Emitted(182, 9) Source(209, 9) + SourceIndex(0) name (Point) +3 >Emitted(182, 10) Source(209, 10) + SourceIndex(0) name (Point) +4 >Emitted(182, 11) Source(209, 11) + SourceIndex(0) name (Point) +5 >Emitted(182, 14) Source(209, 14) + SourceIndex(0) name (Point) +6 >Emitted(182, 15) Source(209, 15) + SourceIndex(0) name (Point) +7 >Emitted(182, 16) Source(209, 16) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ 5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3335,22 +3380,22 @@ sourceFile:contextualTyping.ts 3 > 4 > this 5 > ; -1->Emitted(178, 5) Source(211, 5) + SourceIndex(0) name (Point) -2 >Emitted(178, 11) Source(211, 11) + SourceIndex(0) name (Point) -3 >Emitted(178, 12) Source(211, 12) + SourceIndex(0) name (Point) -4 >Emitted(178, 16) Source(211, 16) + SourceIndex(0) name (Point) -5 >Emitted(178, 17) Source(211, 17) + SourceIndex(0) name (Point) +1->Emitted(183, 5) Source(211, 5) + SourceIndex(0) name (Point) +2 >Emitted(183, 11) Source(211, 11) + SourceIndex(0) name (Point) +3 >Emitted(183, 12) Source(211, 12) + SourceIndex(0) name (Point) +4 >Emitted(183, 16) Source(211, 16) + SourceIndex(0) name (Point) +5 >Emitted(183, 17) Source(211, 17) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} -1->Emitted(179, 1) Source(212, 1) + SourceIndex(0) name (Point) -2 >Emitted(179, 2) Source(212, 2) + SourceIndex(0) name (Point) +1->Emitted(184, 1) Source(212, 1) + SourceIndex(0) name (Point) +2 >Emitted(184, 2) Source(212, 2) + SourceIndex(0) name (Point) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^ @@ -3363,7 +3408,7 @@ sourceFile:contextualTyping.ts 11> ^ 12> ^ 13> ^ -14> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3379,21 +3424,21 @@ sourceFile:contextualTyping.ts 11> 0 12> ) 13> ; -1->Emitted(180, 1) Source(214, 1) + SourceIndex(0) -2 >Emitted(180, 6) Source(214, 6) + SourceIndex(0) -3 >Emitted(180, 7) Source(214, 7) + SourceIndex(0) -4 >Emitted(180, 13) Source(214, 13) + SourceIndex(0) -5 >Emitted(180, 16) Source(214, 16) + SourceIndex(0) -6 >Emitted(180, 20) Source(214, 20) + SourceIndex(0) -7 >Emitted(180, 25) Source(214, 25) + SourceIndex(0) -8 >Emitted(180, 26) Source(214, 26) + SourceIndex(0) -9 >Emitted(180, 27) Source(214, 27) + SourceIndex(0) -10>Emitted(180, 29) Source(214, 29) + SourceIndex(0) -11>Emitted(180, 30) Source(214, 30) + SourceIndex(0) -12>Emitted(180, 31) Source(214, 31) + SourceIndex(0) -13>Emitted(180, 32) Source(214, 32) + SourceIndex(0) +1->Emitted(185, 1) Source(214, 1) + SourceIndex(0) +2 >Emitted(185, 6) Source(214, 6) + SourceIndex(0) +3 >Emitted(185, 7) Source(214, 7) + SourceIndex(0) +4 >Emitted(185, 13) Source(214, 13) + SourceIndex(0) +5 >Emitted(185, 16) Source(214, 16) + SourceIndex(0) +6 >Emitted(185, 20) Source(214, 20) + SourceIndex(0) +7 >Emitted(185, 25) Source(214, 25) + SourceIndex(0) +8 >Emitted(185, 26) Source(214, 26) + SourceIndex(0) +9 >Emitted(185, 27) Source(214, 27) + SourceIndex(0) +10>Emitted(185, 29) Source(214, 29) + SourceIndex(0) +11>Emitted(185, 30) Source(214, 30) + SourceIndex(0) +12>Emitted(185, 31) Source(214, 31) + SourceIndex(0) +13>Emitted(185, 32) Source(214, 32) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^^^^ @@ -3404,7 +3449,7 @@ sourceFile:contextualTyping.ts 9 > ^^ 10> ^^ 11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > > @@ -3418,19 +3463,19 @@ sourceFile:contextualTyping.ts 9 > dx 10> , 11> dy -1->Emitted(181, 1) Source(216, 1) + SourceIndex(0) -2 >Emitted(181, 6) Source(216, 6) + SourceIndex(0) -3 >Emitted(181, 7) Source(216, 7) + SourceIndex(0) -4 >Emitted(181, 16) Source(216, 16) + SourceIndex(0) -5 >Emitted(181, 17) Source(216, 17) + SourceIndex(0) -6 >Emitted(181, 20) Source(216, 20) + SourceIndex(0) -7 >Emitted(181, 23) Source(216, 23) + SourceIndex(0) -8 >Emitted(181, 33) Source(216, 32) + SourceIndex(0) -9 >Emitted(181, 35) Source(216, 34) + SourceIndex(0) -10>Emitted(181, 37) Source(216, 36) + SourceIndex(0) -11>Emitted(181, 39) Source(216, 38) + SourceIndex(0) +1->Emitted(186, 1) Source(216, 1) + SourceIndex(0) +2 >Emitted(186, 6) Source(216, 6) + SourceIndex(0) +3 >Emitted(186, 7) Source(216, 7) + SourceIndex(0) +4 >Emitted(186, 16) Source(216, 16) + SourceIndex(0) +5 >Emitted(186, 17) Source(216, 17) + SourceIndex(0) +6 >Emitted(186, 20) Source(216, 20) + SourceIndex(0) +7 >Emitted(186, 23) Source(216, 23) + SourceIndex(0) +8 >Emitted(186, 33) Source(216, 32) + SourceIndex(0) +9 >Emitted(186, 35) Source(216, 34) + SourceIndex(0) +10>Emitted(186, 37) Source(216, 36) + SourceIndex(0) +11>Emitted(186, 39) Source(216, 38) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ @@ -3449,7 +3494,7 @@ sourceFile:contextualTyping.ts 17> ^^ 18> ^ 19> ^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -3470,44 +3515,44 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(182, 5) Source(217, 5) + SourceIndex(0) -2 >Emitted(182, 11) Source(217, 11) + SourceIndex(0) -3 >Emitted(182, 12) Source(217, 12) + SourceIndex(0) -4 >Emitted(182, 16) Source(217, 16) + SourceIndex(0) -5 >Emitted(182, 21) Source(217, 21) + SourceIndex(0) -6 >Emitted(182, 22) Source(217, 22) + SourceIndex(0) -7 >Emitted(182, 26) Source(217, 26) + SourceIndex(0) -8 >Emitted(182, 27) Source(217, 27) + SourceIndex(0) -9 >Emitted(182, 28) Source(217, 28) + SourceIndex(0) -10>Emitted(182, 31) Source(217, 31) + SourceIndex(0) -11>Emitted(182, 33) Source(217, 33) + SourceIndex(0) -12>Emitted(182, 35) Source(217, 35) + SourceIndex(0) -13>Emitted(182, 39) Source(217, 39) + SourceIndex(0) -14>Emitted(182, 40) Source(217, 40) + SourceIndex(0) -15>Emitted(182, 41) Source(217, 41) + SourceIndex(0) -16>Emitted(182, 44) Source(217, 44) + SourceIndex(0) -17>Emitted(182, 46) Source(217, 46) + SourceIndex(0) -18>Emitted(182, 47) Source(217, 47) + SourceIndex(0) -19>Emitted(182, 48) Source(217, 48) + SourceIndex(0) +1->Emitted(187, 5) Source(217, 5) + SourceIndex(0) +2 >Emitted(187, 11) Source(217, 11) + SourceIndex(0) +3 >Emitted(187, 12) Source(217, 12) + SourceIndex(0) +4 >Emitted(187, 16) Source(217, 16) + SourceIndex(0) +5 >Emitted(187, 21) Source(217, 21) + SourceIndex(0) +6 >Emitted(187, 22) Source(217, 22) + SourceIndex(0) +7 >Emitted(187, 26) Source(217, 26) + SourceIndex(0) +8 >Emitted(187, 27) Source(217, 27) + SourceIndex(0) +9 >Emitted(187, 28) Source(217, 28) + SourceIndex(0) +10>Emitted(187, 31) Source(217, 31) + SourceIndex(0) +11>Emitted(187, 33) Source(217, 33) + SourceIndex(0) +12>Emitted(187, 35) Source(217, 35) + SourceIndex(0) +13>Emitted(187, 39) Source(217, 39) + SourceIndex(0) +14>Emitted(187, 40) Source(217, 40) + SourceIndex(0) +15>Emitted(187, 41) Source(217, 41) + SourceIndex(0) +16>Emitted(187, 44) Source(217, 44) + SourceIndex(0) +17>Emitted(187, 46) Source(217, 46) + SourceIndex(0) +18>Emitted(187, 47) Source(217, 47) + SourceIndex(0) +19>Emitted(187, 48) Source(217, 48) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >} 3 > ; -1->Emitted(183, 1) Source(218, 1) + SourceIndex(0) -2 >Emitted(183, 2) Source(218, 2) + SourceIndex(0) -3 >Emitted(183, 3) Source(218, 3) + SourceIndex(0) +1->Emitted(188, 1) Source(218, 1) + SourceIndex(0) +2 >Emitted(188, 2) Source(218, 2) + SourceIndex(0) +3 >Emitted(188, 3) Source(218, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^^ 3 > ^ 4 > ^^^^^^^^^ 5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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contextualTyping.ts 3 > . 4 > prototype 5 > = -1->Emitted(184, 1) Source(220, 1) + SourceIndex(0) -2 >Emitted(184, 6) Source(220, 6) + SourceIndex(0) -3 >Emitted(184, 7) Source(220, 7) + SourceIndex(0) -4 >Emitted(184, 16) Source(220, 16) + SourceIndex(0) -5 >Emitted(184, 19) Source(220, 19) + SourceIndex(0) +1->Emitted(189, 1) Source(220, 1) + SourceIndex(0) +2 >Emitted(189, 6) Source(220, 6) + SourceIndex(0) +3 >Emitted(189, 7) Source(220, 7) + SourceIndex(0) +4 >Emitted(189, 16) Source(220, 16) + SourceIndex(0) +5 >Emitted(189, 19) Source(220, 19) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->{ > 2 > x 3 > : 4 > 0 -1->Emitted(185, 5) Source(221, 5) + SourceIndex(0) -2 >Emitted(185, 6) Source(221, 6) + SourceIndex(0) -3 >Emitted(185, 8) Source(221, 8) + SourceIndex(0) -4 >Emitted(185, 9) Source(221, 9) + SourceIndex(0) +1->Emitted(190, 5) Source(221, 5) + SourceIndex(0) +2 >Emitted(190, 6) Source(221, 6) + SourceIndex(0) +3 >Emitted(190, 8) Source(221, 8) + SourceIndex(0) +4 >Emitted(190, 9) Source(221, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ 3 > ^^ 4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^-> 1->, > 2 > y 3 > : 4 > 0 -1->Emitted(186, 5) Source(222, 5) + SourceIndex(0) -2 >Emitted(186, 6) Source(222, 6) + SourceIndex(0) -3 >Emitted(186, 8) Source(222, 8) + SourceIndex(0) -4 >Emitted(186, 9) Source(222, 9) + SourceIndex(0) +1->Emitted(191, 5) Source(222, 5) + SourceIndex(0) +2 >Emitted(191, 6) Source(222, 6) + SourceIndex(0) +3 >Emitted(191, 8) Source(222, 8) + SourceIndex(0) +4 >Emitted(191, 9) Source(222, 9) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^^^ 3 > ^^ 4 > ^^^^^^^^^^ 5 > ^^ 6 > ^^ 7 > ^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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> 1->, > 2 > add @@ -3567,15 +3612,15 @@ sourceFile:contextualTyping.ts 5 > dx 6 > , 7 > dy -1->Emitted(187, 5) Source(223, 5) + SourceIndex(0) -2 >Emitted(187, 8) Source(223, 8) + SourceIndex(0) -3 >Emitted(187, 10) Source(223, 10) + SourceIndex(0) -4 >Emitted(187, 20) Source(223, 19) + SourceIndex(0) -5 >Emitted(187, 22) Source(223, 21) + SourceIndex(0) -6 >Emitted(187, 24) Source(223, 23) + SourceIndex(0) -7 >Emitted(187, 26) Source(223, 25) + SourceIndex(0) +1->Emitted(192, 5) Source(223, 5) + SourceIndex(0) +2 >Emitted(192, 8) Source(223, 8) + SourceIndex(0) +3 >Emitted(192, 10) Source(223, 10) + SourceIndex(0) +4 >Emitted(192, 20) Source(223, 19) + SourceIndex(0) +5 >Emitted(192, 22) Source(223, 21) + SourceIndex(0) +6 >Emitted(192, 24) Source(223, 23) + SourceIndex(0) +7 >Emitted(192, 26) Source(223, 25) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^ @@ -3594,7 +3639,7 @@ sourceFile:contextualTyping.ts 17> ^^ 18> ^ 19> ^ -20> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->) { > 2 > return @@ -3615,51 +3660,51 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(188, 9) Source(224, 9) + SourceIndex(0) -2 >Emitted(188, 15) Source(224, 15) + SourceIndex(0) -3 >Emitted(188, 16) Source(224, 16) + SourceIndex(0) -4 >Emitted(188, 20) Source(224, 20) + SourceIndex(0) -5 >Emitted(188, 25) Source(224, 25) + SourceIndex(0) -6 >Emitted(188, 26) Source(224, 26) + SourceIndex(0) -7 >Emitted(188, 30) Source(224, 30) + SourceIndex(0) -8 >Emitted(188, 31) Source(224, 31) + SourceIndex(0) -9 >Emitted(188, 32) Source(224, 32) + SourceIndex(0) -10>Emitted(188, 35) Source(224, 35) + SourceIndex(0) -11>Emitted(188, 37) Source(224, 37) + SourceIndex(0) -12>Emitted(188, 39) Source(224, 39) + SourceIndex(0) -13>Emitted(188, 43) Source(224, 43) + SourceIndex(0) -14>Emitted(188, 44) Source(224, 44) + SourceIndex(0) -15>Emitted(188, 45) Source(224, 45) + SourceIndex(0) -16>Emitted(188, 48) Source(224, 48) + SourceIndex(0) -17>Emitted(188, 50) Source(224, 50) + SourceIndex(0) -18>Emitted(188, 51) Source(224, 51) + SourceIndex(0) -19>Emitted(188, 52) Source(224, 52) + SourceIndex(0) +1->Emitted(193, 9) Source(224, 9) + SourceIndex(0) +2 >Emitted(193, 15) Source(224, 15) + SourceIndex(0) +3 >Emitted(193, 16) Source(224, 16) + SourceIndex(0) +4 >Emitted(193, 20) Source(224, 20) + SourceIndex(0) +5 >Emitted(193, 25) Source(224, 25) + SourceIndex(0) +6 >Emitted(193, 26) Source(224, 26) + SourceIndex(0) +7 >Emitted(193, 30) Source(224, 30) + SourceIndex(0) +8 >Emitted(193, 31) Source(224, 31) + SourceIndex(0) +9 >Emitted(193, 32) Source(224, 32) + SourceIndex(0) +10>Emitted(193, 35) Source(224, 35) + SourceIndex(0) +11>Emitted(193, 37) Source(224, 37) + SourceIndex(0) +12>Emitted(193, 39) Source(224, 39) + SourceIndex(0) +13>Emitted(193, 43) Source(224, 43) + SourceIndex(0) +14>Emitted(193, 44) Source(224, 44) + SourceIndex(0) +15>Emitted(193, 45) Source(224, 45) + SourceIndex(0) +16>Emitted(193, 48) Source(224, 48) + SourceIndex(0) +17>Emitted(193, 50) Source(224, 50) + SourceIndex(0) +18>Emitted(193, 51) Source(224, 51) + SourceIndex(0) +19>Emitted(193, 52) Source(224, 52) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 > } -1->Emitted(189, 5) Source(225, 5) + SourceIndex(0) -2 >Emitted(189, 6) Source(225, 6) + SourceIndex(0) +1->Emitted(194, 5) Source(225, 5) + SourceIndex(0) +2 >Emitted(194, 6) Source(225, 6) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1->^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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) + SourceIndex(0) +1->Emitted(195, 2) Source(226, 2) + SourceIndex(0) +2 >Emitted(195, 3) Source(226, 3) + SourceIndex(0) --- ->>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> +>>>var C1T5 = (function () {\n function C1T5() {\n this.foo = function (i) {\n return i;\n };\n }\n return C1T5;\n})();\nvar C2T5;\n(function (C2T5) {\n C2T5.foo = function (i) {\n return i;\n };\n})(C2T5 || (C2T5 = {}));\n// CONTEXT: Variable declaration\nvar c3t1 = (function (s) {\n return s;\n});\nvar c3t2 = ({\n n: 1\n});\nvar c3t3 = [];\nvar c3t4 = function () {\n return ({});\n};\nvar c3t5 = function (n) {\n return ({});\n};\nvar c3t6 = function (n, s) {\n return ({});\n};\nvar c3t7 = function (n) {\n return n;\n};\nvar c3t8 = function (n) {\n return n;\n};\nvar c3t9 = [[], []];\nvar c3t10 = [({}), ({})];\nvar c3t11 = [function (n, s) {\n return s;\n}];\nvar c3t12 = {\n foo: ({})\n};\nvar c3t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c3t14 = ({\n a: []\n});\nvar C4T5 = (function () {\n function C4T5() {\n this.foo = function (i, s) {\n return s;\n };\n }\n return C4T5;\n})();\nvar C5T5;\n(function (C5T5) {\n C5T5.foo;\n C5T5.foo = function (i, s) {\n return s;\n };\n})(C5T5 || (C5T5 = {}));\n// CONTEXT: Variable assignment\nvar c6t5;\nc6t5 = function (n) {\n return ({});\n};\n// CONTEXT: Array index assignment\nvar c7t2;\nc7t2[0] = ({ n: 1 });\nvar objc8 = ({});\nobjc8.t1 = (function (s) {\n return s;\n});\nobjc8.t2 = ({\n n: 1\n});\nobjc8.t3 = [];\nobjc8.t4 = function () {\n return ({});\n};\nobjc8.t5 = function (n) {\n return ({});\n};\nobjc8.t6 = function (n, s) {\n return ({});\n};\nobjc8.t7 = function (n) {\n return n;\n};\nobjc8.t8 = function (n) {\n return n;\n};\nobjc8.t9 = [[], []];\nobjc8.t10 = [({}), ({})];\nobjc8.t11 = [function (n, s) {\n return s;\n}];\nobjc8.t12 = {\n foo: ({})\n};\nobjc8.t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nobjc8.t14 = ({\n a: []\n});\nfunction c9t5(f) {\n}\n;\nc9t5(function (n) {\n return ({});\n});\n// CONTEXT: Return statement\nvar c10t5 = function () {\n return function (n) {\n return ({});\n };\n};\nvar C11t5 = (function () {\n function C11t5(f) {\n }\n return C11t5;\n})();\n;\nvar i = new C11t5(function (n) {\n return ({});\n});\n// CONTEXT: Type annotated expression\nvar c12t1 = (function (s) {\n return s;\n});\nvar c12t2 = ({\n n: 1\n});\nvar c12t3 = [];\nvar c12t4 = function () {\n return ({});\n};\nvar c12t5 = function (n) {\n return ({});\n};\nvar c12t6 = function (n, s) {\n return ({});\n};\nvar c12t7 = function (n) {\n return n;\n};\nvar c12t8 = function (n) {\n return n;\n};\nvar c12t9 = [[], []];\nvar c12t10 = [({}), ({})];\nvar c12t11 = [function (n, s) {\n return s;\n}];\nvar c12t12 = {\n foo: ({})\n};\nvar c12t13 = ({\n f: function (i, s) {\n return s;\n }\n});\nvar c12t14 = ({\n a: []\n});\nfunction EF1(a, b) {\n return a + b;\n}\nvar efv = EF1(1, 2);\nfunction Point(x, y) {\n this.x = x;\n this.y = y;\n return this;\n}\nPoint.origin = new Point(0, 0);\nPoint.prototype.add = function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n};\nPoint.prototype = {\n x: 0,\n y: 0,\n add: function (dx, dy) {\n return new Point(this.x + dx, this.y + dy);\n }\n};\nvar x = {};\n//# sourceMappingURL=contextualTyping.js.map1-> 2 >^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > >interface A { x: string; } @@ -3670,10 +3715,10 @@ sourceFile:contextualTyping.ts 4 > : B = 5 > { } 6 > ; -1->Emitted(191, 1) Source(230, 1) + SourceIndex(0) -2 >Emitted(191, 5) Source(230, 5) + SourceIndex(0) -3 >Emitted(191, 6) Source(230, 6) + SourceIndex(0) -4 >Emitted(191, 9) Source(230, 12) + SourceIndex(0) -5 >Emitted(191, 11) Source(230, 15) + SourceIndex(0) -6 >Emitted(191, 12) Source(230, 16) + SourceIndex(0) +1->Emitted(196, 1) Source(230, 1) + SourceIndex(0) +2 >Emitted(196, 5) Source(230, 5) + SourceIndex(0) +3 >Emitted(196, 6) Source(230, 6) + SourceIndex(0) +4 >Emitted(196, 9) Source(230, 12) + SourceIndex(0) +5 >Emitted(196, 11) Source(230, 15) + SourceIndex(0) +6 >Emitted(196, 12) Source(230, 16) + SourceIndex(0) --- \ No newline at end of file diff --git a/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js b/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js index d5b27792603..b2a8bf0dba1 100644 --- a/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js +++ b/tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.js @@ -21,6 +21,7 @@ var r6 = _.forEach(c2, (x) => { return x.toFixed() }); //// [contextualTypingOfGenericFunctionTypedArguments1.js] var c2; var _; +// errors on all 3 lines, bug was that r5 was the only line with errors var f = function (x) { return x.toFixed(); }; diff --git a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js index 8e69f08601e..f548b6daaad 100644 --- a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js +++ b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.js @@ -17,6 +17,7 @@ f3 = (x, y) => { return x } //// [contextualTypingWithGenericAndNonGenericSignature.js] +//• If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2; f2 = function (x, y) { return x; diff --git a/tests/baselines/reference/contextualTypingWithGenericSignature.js b/tests/baselines/reference/contextualTypingWithGenericSignature.js index 8eb51fe6b99..a1417e90b43 100644 --- a/tests/baselines/reference/contextualTypingWithGenericSignature.js +++ b/tests/baselines/reference/contextualTypingWithGenericSignature.js @@ -8,6 +8,7 @@ var f2: { f2 = (x, y) => { return x } //// [contextualTypingWithGenericSignature.js] +// If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2; f2 = function (x, y) { return x; diff --git a/tests/baselines/reference/convertKeywordsYes.js b/tests/baselines/reference/convertKeywordsYes.js index b6572cf9cf9..deae65b54c9 100644 --- a/tests/baselines/reference/convertKeywordsYes.js +++ b/tests/baselines/reference/convertKeywordsYes.js @@ -306,6 +306,7 @@ module bigModule { } //// [convertKeywordsYes.js] +// reserved ES5 future in strict mode var constructor = 0; var any = 0; var boolean = 0; diff --git a/tests/baselines/reference/declFileRegressionTests.js b/tests/baselines/reference/declFileRegressionTests.js index a2e287a4875..f8d0edbe48a 100644 --- a/tests/baselines/reference/declFileRegressionTests.js +++ b/tests/baselines/reference/declFileRegressionTests.js @@ -6,6 +6,8 @@ var n = { w: null, x: '', y: () => { }, z: 32 }; //// [declFileRegressionTests.js] +// 'null' not converted to 'any' in d.ts +// function types not piped through correctly var n = { w: null, x: '', y: function () { }, z: 32 }; diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js index 2b6216a7851..983ca4b6cf0 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js @@ -49,6 +49,7 @@ objA.a--; M.n--; //// [decrementOperatorWithAnyOtherType.js] +// -- operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -63,10 +64,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = --ANY; var ResultIsNumber2 = --ANY1; var ResultIsNumber3 = ANY1--; var ResultIsNumber4 = ANY1--; +// expressions var ResultIsNumber5 = --ANY2[0]; var ResultIsNumber6 = --obj.x; var ResultIsNumber7 = --obj.y; diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js index 30dce46eba3..c72bf171043 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -73,6 +73,7 @@ ANY2--; ++ANY2[0]--; //// [decrementOperatorWithAnyOtherTypeInvalidOperations.js] +// -- operator on any type var ANY1; var ANY2 = ["", ""]; var obj; @@ -96,6 +97,7 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = --ANY2; var ResultIsNumber2 = --A; var ResultIsNumber3 = --M; @@ -106,12 +108,14 @@ var ResultIsNumber7 = A--; var ResultIsNumber8 = M--; var ResultIsNumber9 = obj--; var ResultIsNumber10 = obj1--; +// any type literal var ResultIsNumber11 = --{}; var ResultIsNumber12 = --null; var ResultIsNumber13 = --undefined; var ResultIsNumber14 = null--; var ResultIsNumber15 = {}--; var ResultIsNumber16 = undefined--; +// any type expressions var ResultIsNumber17 = --foo(); var ResultIsNumber18 = --A.foo(); var ResultIsNumber19 = --(null + undefined); diff --git a/tests/baselines/reference/decrementOperatorWithEnumType.js b/tests/baselines/reference/decrementOperatorWithEnumType.js index 993fe2487bb..8d180fc308e 100644 --- a/tests/baselines/reference/decrementOperatorWithEnumType.js +++ b/tests/baselines/reference/decrementOperatorWithEnumType.js @@ -20,6 +20,7 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// expression var ResultIsNumber1 = --ENUM1[1]; var ResultIsNumber2 = ENUM1[1]--; --ENUM1[1]; diff --git a/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js index a8c552ada59..4964e79d573 100644 --- a/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithEnumTypeInvalidOperations.js @@ -34,10 +34,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = --ENUM; var ResultIsNumber2 = --ENUM1; var ResultIsNumber3 = ENUM--; var ResultIsNumber4 = ENUM1--; +// enum type expressions var ResultIsNumber5 = --(ENUM[1] + ENUM[2]); var ResultIsNumber6 = (ENUM[1] + ENUM[2])--; --ENUM; diff --git a/tests/baselines/reference/decrementOperatorWithNumberType.js b/tests/baselines/reference/decrementOperatorWithNumberType.js index 381ad2b534f..c8631a6afbe 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberType.js +++ b/tests/baselines/reference/decrementOperatorWithNumberType.js @@ -40,6 +40,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithNumberType.js] +// -- operator on number type var NUMBER; var NUMBER1 = [1, 2]; var A = (function () { @@ -52,8 +53,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = --NUMBER; var ResultIsNumber2 = NUMBER--; +// expressions var ResultIsNumber3 = --objA.a; var ResultIsNumber4 = --M.n; var ResultIsNumber5 = objA.a--; diff --git a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js index e9b2ff0e87f..bbe69efa1bd 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js @@ -47,6 +47,7 @@ NUMBER1--; foo()--; //// [decrementOperatorWithNumberTypeInvalidOperations.js] +// -- operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -65,8 +66,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +//number type var var ResultIsNumber1 = --NUMBER1; var ResultIsNumber2 = NUMBER1--; +// number type literal var ResultIsNumber3 = --1; var ResultIsNumber4 = --{ x: 1, y: 2 }; var ResultIsNumber5 = --{ x: 1, y: function (n) { @@ -77,6 +80,7 @@ var ResultIsNumber7 = { x: 1, y: 2 }--; var ResultIsNumber8 = { x: 1, y: function (n) { return n; } }--; +// number type expressions var ResultIsNumber9 = --foo(); var ResultIsNumber10 = --A.foo(); var ResultIsNumber11 = --(NUMBER + NUMBER); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js index cffee508431..c113ea6ef3b 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js @@ -55,6 +55,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithUnsupportedBooleanType.js] +// -- operator on boolean type var BOOLEAN; function foo() { return true; @@ -72,8 +73,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = --BOOLEAN; var ResultIsNumber2 = BOOLEAN--; +// boolean type literal var ResultIsNumber3 = --true; var ResultIsNumber4 = --{ x: true, y: false }; var ResultIsNumber5 = --{ x: true, y: function (n) { @@ -84,6 +87,7 @@ var ResultIsNumber7 = { x: true, y: false }--; var ResultIsNumber8 = { x: true, y: function (n) { return n; } }--; +// boolean type expressions var ResultIsNumber9 = --objA.a; var ResultIsNumber10 = --M.n; var ResultIsNumber11 = --foo(); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js index 7eb26de8a67..2fe2748d55c 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js @@ -66,6 +66,7 @@ M.n--; objA.a--, M.n--; //// [decrementOperatorWithUnsupportedStringType.js] +// -- operator on string type var STRING; var STRING1 = ["", ""]; function foo() { @@ -84,10 +85,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = --STRING; var ResultIsNumber2 = --STRING1; var ResultIsNumber3 = STRING--; var ResultIsNumber4 = STRING1--; +// string type literal var ResultIsNumber5 = --""; var ResultIsNumber6 = --{ x: "", y: "" }; var ResultIsNumber7 = --{ x: "", y: function (s) { @@ -98,6 +101,7 @@ var ResultIsNumber9 = { x: "", y: "" }--; var ResultIsNumber10 = { x: "", y: function (s) { return s; } }--; +// string type expressions var ResultIsNumber11 = --objA.a; var ResultIsNumber12 = --M.n; var ResultIsNumber13 = --STRING1[0]; diff --git a/tests/baselines/reference/defaultArgsForwardReferencing.js b/tests/baselines/reference/defaultArgsForwardReferencing.js index 5926dd7105f..4e9a5ae60e3 100644 --- a/tests/baselines/reference/defaultArgsForwardReferencing.js +++ b/tests/baselines/reference/defaultArgsForwardReferencing.js @@ -90,6 +90,7 @@ var C = (function () { }; return C; })(); +// Function expressions var x = function (a, b, c) { if (a === void 0) { a = b; } if (b === void 0) { b = c; } diff --git a/tests/baselines/reference/defaultArgsInFunctionExpressions.js b/tests/baselines/reference/defaultArgsInFunctionExpressions.js index a5872ceac7b..991c45d6973 100644 --- a/tests/baselines/reference/defaultArgsInFunctionExpressions.js +++ b/tests/baselines/reference/defaultArgsInFunctionExpressions.js @@ -40,6 +40,7 @@ var n = f(4); n = f(); var s = f(''); s = f(); +// Type check the default argument with the type annotation var f2 = function (a) { if (a === void 0) { a = 3; } return a; @@ -47,12 +48,15 @@ var f2 = function (a) { s = f2(''); s = f2(); n = f2(); +// Contextually type the default arg with the type annotation var f3 = function (a) { if (a === void 0) { a = function (s) { return s; }; } }; +// Type check using the function's contextual type var f4 = function (a) { if (a === void 0) { a = ""; } }; +// Contextually type the default arg using the function's contextual type var f5 = function (a) { if (a === void 0) { a = function (s) { return s; }; } }; diff --git a/tests/baselines/reference/defaultIndexProps2.js b/tests/baselines/reference/defaultIndexProps2.js index 67a894bf9e1..9f8b97c1350 100644 --- a/tests/baselines/reference/defaultIndexProps2.js +++ b/tests/baselines/reference/defaultIndexProps2.js @@ -23,6 +23,7 @@ var Foo = (function () { return Foo; })(); var f = new Foo(); +// WScript.Echo(f[0]); var o = { v: "Yo2" }; 1[0]; var q = "s"[0]; diff --git a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js index 167ce961b3a..a344262a266 100644 --- a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js @@ -62,6 +62,7 @@ delete objA.a; delete M.n; //// [deleteOperatorWithAnyOtherType.js] +// delete operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -86,14 +87,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsBoolean1 = delete ANY1; var ResultIsBoolean2 = delete ANY2; var ResultIsBoolean3 = delete A; var ResultIsBoolean4 = delete M; var ResultIsBoolean5 = delete obj; var ResultIsBoolean6 = delete obj1; +// any type literal var ResultIsBoolean7 = delete undefined; var ResultIsBoolean8 = delete null; +// any type expressions var ResultIsBoolean9 = delete ANY2[0]; var ResultIsBoolean10 = delete obj1.x; var ResultIsBoolean11 = delete obj1.y; @@ -105,6 +109,7 @@ var ResultIsBoolean16 = delete (ANY + ANY1); var ResultIsBoolean17 = delete (null + undefined); var ResultIsBoolean18 = delete (null + null); var ResultIsBoolean19 = delete (undefined + undefined); +// multiple delete operators var ResultIsBoolean20 = delete delete ANY; var ResultIsBoolean21 = delete delete delete (ANY + ANY1); delete ANY; diff --git a/tests/baselines/reference/deleteOperatorWithBooleanType.js b/tests/baselines/reference/deleteOperatorWithBooleanType.js index 198e3c73b7a..c0257d29048 100644 --- a/tests/baselines/reference/deleteOperatorWithBooleanType.js +++ b/tests/baselines/reference/deleteOperatorWithBooleanType.js @@ -39,6 +39,7 @@ delete objA.a; delete M.n; //// [deleteOperatorWithBooleanType.js] +// delete operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsBoolean1 = delete BOOLEAN; +// boolean type literal var ResultIsBoolean2 = delete true; var ResultIsBoolean3 = delete { x: true, y: false }; +// boolean type expressions var ResultIsBoolean4 = delete objA.a; var ResultIsBoolean5 = delete M.n; var ResultIsBoolean6 = delete foo(); var ResultIsBoolean7 = delete A.foo(); +// multiple delete operator var ResultIsBoolean8 = delete delete BOOLEAN; delete true; delete BOOLEAN; diff --git a/tests/baselines/reference/deleteOperatorWithEnumType.js b/tests/baselines/reference/deleteOperatorWithEnumType.js index fd5e1e674f6..7d1398ce7ad 100644 --- a/tests/baselines/reference/deleteOperatorWithEnumType.js +++ b/tests/baselines/reference/deleteOperatorWithEnumType.js @@ -34,10 +34,13 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsBoolean1 = delete ENUM; var ResultIsBoolean2 = delete ENUM1; +// enum type expressions var ResultIsBoolean3 = delete ENUM1[0]; var ResultIsBoolean4 = delete (ENUM[0] + ENUM1[1]); +// multiple delete operators var ResultIsBoolean5 = delete delete ENUM; var ResultIsBoolean6 = delete delete delete (ENUM[0] + ENUM1[1]); delete ENUM; diff --git a/tests/baselines/reference/deleteOperatorWithNumberType.js b/tests/baselines/reference/deleteOperatorWithNumberType.js index 7b6cdcb962b..6c5a4a6c449 100644 --- a/tests/baselines/reference/deleteOperatorWithNumberType.js +++ b/tests/baselines/reference/deleteOperatorWithNumberType.js @@ -46,6 +46,7 @@ delete M.n; delete objA.a, M.n; //// [deleteOperatorWithNumberType.js] +// delete operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -64,19 +65,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsBoolean1 = delete NUMBER; var ResultIsBoolean2 = delete NUMBER1; +// number type literal var ResultIsBoolean3 = delete 1; var ResultIsBoolean4 = delete { x: 1, y: 2 }; var ResultIsBoolean5 = delete { x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsBoolean6 = delete objA.a; var ResultIsBoolean7 = delete M.n; var ResultIsBoolean8 = delete NUMBER1[0]; var ResultIsBoolean9 = delete foo(); var ResultIsBoolean10 = delete A.foo(); var ResultIsBoolean11 = delete (NUMBER + NUMBER); +// multiple delete operator var ResultIsBoolean12 = delete delete NUMBER; var ResultIsBoolean13 = delete delete delete (NUMBER + NUMBER); delete 1; diff --git a/tests/baselines/reference/deleteOperatorWithStringType.js b/tests/baselines/reference/deleteOperatorWithStringType.js index 65a1ed5ef18..3697e04c3d1 100644 --- a/tests/baselines/reference/deleteOperatorWithStringType.js +++ b/tests/baselines/reference/deleteOperatorWithStringType.js @@ -45,6 +45,7 @@ delete foo(); delete objA.a,M.n; //// [deleteOperatorWithStringType.js] +// delete operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -63,13 +64,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsBoolean1 = delete STRING; var ResultIsBoolean2 = delete STRING1; +// string type literal var ResultIsBoolean3 = delete ""; var ResultIsBoolean4 = delete { x: "", y: "" }; var ResultIsBoolean5 = delete { x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsBoolean6 = delete objA.a; var ResultIsBoolean7 = delete M.n; var ResultIsBoolean8 = delete STRING1[0]; @@ -77,6 +81,7 @@ var ResultIsBoolean9 = delete foo(); var ResultIsBoolean10 = delete A.foo(); var ResultIsBoolean11 = delete (STRING + STRING); var ResultIsBoolean12 = delete STRING.charAt(0); +// multiple delete operator var ResultIsBoolean13 = delete delete STRING; var ResultIsBoolean14 = delete delete delete (STRING + STRING); delete ""; diff --git a/tests/baselines/reference/duplicateAnonymousInners1.js b/tests/baselines/reference/duplicateAnonymousInners1.js index 58b6aa476c9..ccb950d330e 100644 --- a/tests/baselines/reference/duplicateAnonymousInners1.js +++ b/tests/baselines/reference/duplicateAnonymousInners1.js @@ -38,6 +38,7 @@ var Foo; } return Inner; })(); + // Inner should show up in intellisense Foo.Outer = 0; })(Foo || (Foo = {})); var Foo; diff --git a/tests/baselines/reference/duplicateVarAndImport.js b/tests/baselines/reference/duplicateVarAndImport.js index 245ed733a44..38148c6ce53 100644 --- a/tests/baselines/reference/duplicateVarAndImport.js +++ b/tests/baselines/reference/duplicateVarAndImport.js @@ -6,4 +6,5 @@ module M { } import a = M; //// [duplicateVarAndImport.js] +// no error since module is not instantiated var a; diff --git a/tests/baselines/reference/duplicateVarAndImport2.js b/tests/baselines/reference/duplicateVarAndImport2.js index b0c05f254a6..42d500d588a 100644 --- a/tests/baselines/reference/duplicateVarAndImport2.js +++ b/tests/baselines/reference/duplicateVarAndImport2.js @@ -5,6 +5,7 @@ module M { export var x = 1; } import a = M; //// [duplicateVarAndImport2.js] +// error since module is instantiated var a; var M; (function (M) { diff --git a/tests/baselines/reference/duplicateVariablesWithAny.js b/tests/baselines/reference/duplicateVariablesWithAny.js index 44b52ed04d1..c21bef01770 100644 --- a/tests/baselines/reference/duplicateVariablesWithAny.js +++ b/tests/baselines/reference/duplicateVariablesWithAny.js @@ -18,6 +18,7 @@ var z: any; var z; // ok //// [duplicateVariablesWithAny.js] +// They should have to be the same even when one of the types is 'any' var x; var x = 2; var y = ""; diff --git a/tests/baselines/reference/emitBOM.js b/tests/baselines/reference/emitBOM.js index c1616f6386d..f243e715991 100644 --- a/tests/baselines/reference/emitBOM.js +++ b/tests/baselines/reference/emitBOM.js @@ -4,7 +4,8 @@ var x; //// [emitBOM.js] -var x; +// JS and d.ts output should have a BOM but not the sourcemap +var x; //# sourceMappingURL=emitBOM.js.map //// [emitBOM.d.ts] diff --git a/tests/baselines/reference/emitBOM.js.map b/tests/baselines/reference/emitBOM.js.map index 46a584bf79d..af5fd260813 100644 --- a/tests/baselines/reference/emitBOM.js.map +++ b/tests/baselines/reference/emitBOM.js.map @@ -1,2 +1,2 @@ //// [emitBOM.js.map] -{"version":3,"file":"emitBOM.js","sourceRoot":"","sources":["emitBOM.ts"],"names":[],"mappings":"AAEA,IAAI,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"emitBOM.js","sourceRoot":"","sources":["emitBOM.ts"],"names":[],"mappings":"AAEA,AADA,6DAA6D;IACzD,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/emitBOM.sourcemap.txt b/tests/baselines/reference/emitBOM.sourcemap.txt index 19dd3247a7b..cd49155d24f 100644 --- a/tests/baselines/reference/emitBOM.sourcemap.txt +++ b/tests/baselines/reference/emitBOM.sourcemap.txt @@ -8,21 +8,30 @@ sources: emitBOM.ts emittedFile:tests/cases/compiler/emitBOM.js sourceFile:emitBOM.ts ------------------------------------------------------------------- ->>>var x; +>>>// JS and d.ts output should have a BOM but not the sourcemap 1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > >// JS and d.ts output should have a BOM but not the sourcemap > -2 >var -3 > x -4 > ; +2 > +3 >// JS and d.ts output should have a BOM but not the sourcemap 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 6) Source(3, 6) + SourceIndex(0) -4 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) +2 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 62) Source(2, 62) + SourceIndex(0) +--- +>>>var x; +1 >^^^^ +2 > ^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >var +2 > x +3 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(2, 7) Source(3, 7) + SourceIndex(0) --- >>>//# sourceMappingURL=emitBOM.js.map \ No newline at end of file diff --git a/tests/baselines/reference/emitPreComments.js b/tests/baselines/reference/emitPreComments.js index 4b70720cd5e..5a79a430175 100644 --- a/tests/baselines/reference/emitPreComments.js +++ b/tests/baselines/reference/emitPreComments.js @@ -31,4 +31,5 @@ var y = 10; //// [emitPreComments.js] +// This is pre comment var y = 10; diff --git a/tests/baselines/reference/enumBasics.js b/tests/baselines/reference/enumBasics.js index 3cf1ca50d95..10ef73e8d27 100644 --- a/tests/baselines/reference/enumBasics.js +++ b/tests/baselines/reference/enumBasics.js @@ -87,10 +87,13 @@ var E1; E1[E1["B"] = 1] = "B"; E1[E1["C"] = 2] = "C"; })(E1 || (E1 = {})); +// Enum type is a subtype of Number var x = 0 /* A */; +// Enum object type is anonymous with properties of the enum type and numeric indexer var e = E1; var e; var e; +// Reverse mapping of enum returns string name of property var s = E1[0 /* A */]; var s; var E2; @@ -136,6 +139,8 @@ var E9; E9[E9["A"] = 0] = "A"; E9[E9["B"] = E9.A] = "B"; })(E9 || (E9 = {})); +// (refer to .js to validate) +// Enum constant members are propagated var doNotPropagate = [ E8.B, E7.A, @@ -144,6 +149,7 @@ var doNotPropagate = [ E3.Y, E3.Z ]; +// Enum computed members are not propagated var doPropagate = [ 0 /* A */, E9.B, diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index f68e540cee4..d562b825ab0 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -120,6 +120,17 @@ l\u0061bel4: } //// [escapedIdentifiers.js] +/* + 0 .. \u0030 + 9 .. \u0039 + + A .. \u0041 + Z .. \u005a + + a .. \u0061 + z .. \u00za +*/ +// var decl var \u0061 = 1; a++; \u0061++; diff --git a/tests/baselines/reference/everyTypeWithInitializer.js b/tests/baselines/reference/everyTypeWithInitializer.js index 59b00b2c37c..74904a5ea30 100644 --- a/tests/baselines/reference/everyTypeWithInitializer.js +++ b/tests/baselines/reference/everyTypeWithInitializer.js @@ -91,4 +91,5 @@ var aLambda = function (x) { return 2; }; var aModule = M; var aClassInModule = new M.A(); var aFunctionInModule = M.F2; +// no initializer or annotation, so this is an 'any' var x; diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index 0fd36aa5d8f..ad34855a97b 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -46,6 +46,7 @@ var foo; }; return C2; })(); + // None of the types are exported, so per section 10.3, should all be errors foo.e; foo.f; foo.g; diff --git a/tests/baselines/reference/functionCalls.js b/tests/baselines/reference/functionCalls.js index 66ec8938c81..a2a938b2298 100644 --- a/tests/baselines/reference/functionCalls.js +++ b/tests/baselines/reference/functionCalls.js @@ -37,6 +37,7 @@ func(); //// [functionCalls.js] +// Invoke function call on value of type 'any' with no type arguments var anyVar; anyVar(0); anyVar(''); @@ -50,6 +51,8 @@ subFunc(); subFunc(0); subFunc(''); subFunc(); +// Invoke function call on value of type Function with no call signatures with type arguments +// These should be errors var func; func(0); func(''); diff --git a/tests/baselines/reference/functionImplementationErrors.js b/tests/baselines/reference/functionImplementationErrors.js index 3d1f750bb4c..257f12326c1 100644 --- a/tests/baselines/reference/functionImplementationErrors.js +++ b/tests/baselines/reference/functionImplementationErrors.js @@ -45,6 +45,7 @@ undefined === function (): number { //// [functionImplementationErrors.js] +// FunctionExpression with no return type annotation with multiple return statements with unrelated types var f1 = function () { return ''; return 3; @@ -57,6 +58,7 @@ var f3 = function () { return ''; return 3; }; +// FunctionExpression with no return type annotation with return branch of number[] and other of string[] var f4 = function () { if (true) { return ['']; diff --git a/tests/baselines/reference/functionImplementations.js b/tests/baselines/reference/functionImplementations.js index 9693def8c54..68707776146 100644 --- a/tests/baselines/reference/functionImplementations.js +++ b/tests/baselines/reference/functionImplementations.js @@ -131,14 +131,17 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// FunctionExpression with no return type annotation and no return statement returns void var v = function () { }(); +// FunctionExpression f with no return type annotation and directly references f in its body returns any var a = function f() { return f; }; var a = function f() { return f(); }; +// FunctionExpression f with no return type annotation and indirectly references f in its body returns any var a = function f() { var x = f; return x; @@ -160,23 +163,29 @@ function rec4() { var n; var n = rec3(); var n = rec4(); +// FunctionExpression with no return type annotation and returns a number var n = function () { return 3; }(); +// FunctionExpression with no return type annotation and returns null var nu = null; var nu = function () { return null; }(); +// FunctionExpression with no return type annotation and returns undefined var un = undefined; var un = function () { return undefined; }(); +// FunctionExpression with no return type annotation and returns a type parameter type var n = function (x) { return x; }(4); +// FunctionExpression with no return type annotation and returns a constrained type parameter type var n = function (x) { return x; }(4); +// FunctionExpression with no return type annotation with multiple return statements with identical types var n = function () { return 3; return 5; @@ -198,6 +207,7 @@ var b = function () { return new Base(); return new Derived(); }(); +// FunctionExpression with no return type annotation with multiple return statements with one a recursive call var a = function f() { return new Base(); return new Derived(); diff --git a/tests/baselines/reference/functionLiteral.js b/tests/baselines/reference/functionLiteral.js index 8e5e382b4a6..8ee515e8f8c 100644 --- a/tests/baselines/reference/functionLiteral.js +++ b/tests/baselines/reference/functionLiteral.js @@ -14,6 +14,7 @@ var z: { new (x: number): number; }; var z: new (x: number) => number; //// [functionLiteral.js] +// basic valid forms of function literals var x = function () { return 1; }; var x; var y; diff --git a/tests/baselines/reference/functionLiteralForOverloads.js b/tests/baselines/reference/functionLiteralForOverloads.js index 2db12d4fb97..1a0bc874c48 100644 --- a/tests/baselines/reference/functionLiteralForOverloads.js +++ b/tests/baselines/reference/functionLiteralForOverloads.js @@ -22,6 +22,7 @@ var f4: { } = (x) => x; //// [functionLiteralForOverloads.js] +// basic uses of function literals with overloads var f = function (x) { return x; }; var f2 = function (x) { return x; }; var f3 = function (x) { return x; }; diff --git a/tests/baselines/reference/functionLiterals.js b/tests/baselines/reference/functionLiterals.js index 75b210613ee..65dc491eb35 100644 --- a/tests/baselines/reference/functionLiterals.js +++ b/tests/baselines/reference/functionLiterals.js @@ -58,6 +58,7 @@ c2.func5 = c2.func4; //// [functionLiterals.js] +// PropName(ParamList):ReturnType is equivalent to PropName: { (ParamList): ReturnType } var b; b.func1 = b.func2; b.func1 = b.func3; @@ -68,6 +69,7 @@ b.func3 = b.func2; var c; c.func4 = c.func5; c.func5 = c.func4; +// generic versions var b2; b2.func1 = b2.func2; b2.func1 = b2.func3; diff --git a/tests/baselines/reference/functionWithMultipleReturnStatements2.js b/tests/baselines/reference/functionWithMultipleReturnStatements2.js index aacd83b1513..c3476a31abe 100644 --- a/tests/baselines/reference/functionWithMultipleReturnStatements2.js +++ b/tests/baselines/reference/functionWithMultipleReturnStatements2.js @@ -134,6 +134,13 @@ function f6(x) { return null; } } +//function f7(x: T, y: U) { +// if (true) { +// return x; +// } else { +// return y; +// } +//} var a; var b; function f9() { diff --git a/tests/baselines/reference/genericArray1.js b/tests/baselines/reference/genericArray1.js index b636707f04b..68f0d8e1552 100644 --- a/tests/baselines/reference/genericArray1.js +++ b/tests/baselines/reference/genericArray1.js @@ -15,6 +15,17 @@ var lengths = ["a", "b", "c"].map(x => x.length); //// [genericArray1.js] +/* +var n: number[]; + +interface Array { +map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; +} + +interface String{ + length: number; +} +*/ var lengths = ["a", "b", "c"].map(function (x) { return x.length; }); diff --git a/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js b/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js index eed8b43a608..0ef7d0546e3 100644 --- a/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js +++ b/tests/baselines/reference/genericCallWithConstructorTypedArguments5.js @@ -31,6 +31,7 @@ function foo(arg) { } var arg; var r = foo(arg); +// more args not allowed var arg2; var r2 = foo(arg2); var arg3; @@ -38,6 +39,7 @@ var r3 = foo(arg3); function foo2(arg) { return new arg.cb(null, null); } +// fewer args ok var r4 = foo(arg); var arg4; var r6 = foo(arg4); diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js index 74e5d301b77..cd61b1d69f5 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.js @@ -21,6 +21,7 @@ var b: { var r2 = foo4(b); // T is {} (candidates boolean and {}), U is any (candidates any and {}) //// [genericCallWithFunctionTypedArguments3.js] +// No inference is made from function typed arguments which have multiple call signatures var a; function foo4(cb) { var u; diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js b/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js index 4e4703615bb..f875c99fcc6 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments5.js @@ -28,11 +28,13 @@ function foo(arg) { } var arg = { cb: function (x) { return ''; } }; var r = foo(arg); +// more args not allowed var r2 = foo({ cb: function (x, y) { return ''; } }); var r3 = foo({ cb: function (x, y) { return ''; } }); function foo2(arg) { return arg.cb(null, null); } +// fewer args ok var r4 = foo(arg); var r5 = foo({ cb: function (x) { return ''; } }); var r6 = foo({ cb: function (x) { return ''; } }); diff --git a/tests/baselines/reference/genericCallWithGenericSignatureArguments.js b/tests/baselines/reference/genericCallWithGenericSignatureArguments.js index 5084f94f66d..741225fe848 100644 --- a/tests/baselines/reference/genericCallWithGenericSignatureArguments.js +++ b/tests/baselines/reference/genericCallWithGenericSignatureArguments.js @@ -47,6 +47,7 @@ function foo(a, b) { var r; return r; } +//var r1 = foo((x: number) => 1, (x: string) => ''); // error var r1b = foo(function (x) { return 1; }, function (x) { return ''; }); var r2 = foo(function (x) { return null; }, function (x) { return ''; }); var r3 = foo(function (x) { return 1; }, function (x) { return null; }); diff --git a/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js b/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js index e266159d289..1bc5c4217e5 100644 --- a/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js +++ b/tests/baselines/reference/genericCallWithGenericSignatureArguments2.js @@ -44,6 +44,7 @@ function foo(a, b) { var r1 = foo(function (x) { return 1; }, function (x) { return ''; }); function other2(x) { var r7 = foo(function (a) { return a; }, function (b) { return b; }); + // BUG 835518 var r9 = r7(new Date()); var r10 = r7(1); } diff --git a/tests/baselines/reference/genericCallWithObjectLiteralArgs.js b/tests/baselines/reference/genericCallWithObjectLiteralArgs.js index f942b1ff256..7ff09340d71 100644 --- a/tests/baselines/reference/genericCallWithObjectLiteralArgs.js +++ b/tests/baselines/reference/genericCallWithObjectLiteralArgs.js @@ -15,5 +15,6 @@ function foo(x) { } var r = foo({ bar: 1, baz: '' }); var r2 = foo({ bar: 1, baz: 1 }); +// BUG 835724 var r3 = foo({ bar: foo, baz: foo }); var r4 = foo({ bar: 1, baz: '' }); diff --git a/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js b/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js index 4bf498f8146..b731e5fe942 100644 --- a/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js +++ b/tests/baselines/reference/genericCallWithObjectLiteralArguments1.js @@ -12,6 +12,7 @@ function foo(n, m) { return m; } var x = foo({ x: 3, y: "" }, 4); +// these are all errors var x2 = foo({ x: 3, y: "" }, 4); var x3 = foo({ x: 3, y: "" }, 4); var x4 = foo({ x: "", y: 4 }, ""); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js index 66ecc4326e1..1658fd142ef 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js @@ -77,6 +77,7 @@ var r3 = f2({ x: new Derived(), y: new Derived2() }); function f3(y, x) { return y(null); } +// all ok - T gets fixed too early, but then defaults to Base and everything works out var r4 = f3(function (x) { return x; }, new Base()); var r5 = f3(function (x) { return x; }, new Derived()); var r6 = f3(function (x) { return x; }, null); diff --git a/tests/baselines/reference/genericPrototypeProperty.js b/tests/baselines/reference/genericPrototypeProperty.js index 64e03a8c2d7..c38cdb753a7 100644 --- a/tests/baselines/reference/genericPrototypeProperty.js +++ b/tests/baselines/reference/genericPrototypeProperty.js @@ -19,5 +19,6 @@ var C = (function () { return C; })(); var r = C.prototype; +// should be any var r2 = r.x; var r3 = r.foo(null); diff --git a/tests/baselines/reference/genericsAndHigherOrderFunctions.js b/tests/baselines/reference/genericsAndHigherOrderFunctions.js index d99164bd5f6..1086bd78c54 100644 --- a/tests/baselines/reference/genericsAndHigherOrderFunctions.js +++ b/tests/baselines/reference/genericsAndHigherOrderFunctions.js @@ -18,5 +18,6 @@ var foo: (g: (x: K) => N) => (f: (_: N) => (_: R) => R) => h(combine(f)(g)) //// [genericsAndHigherOrderFunctions.js] +// no errors expected var combine = function (f) { return function (g) { return function (x) { return f(g(x)); }; }; }; var foo = function (g) { return function (h) { return function (f) { return h(combine(f)(g)); }; }; }; diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.js b/tests/baselines/reference/heterogeneousArrayLiterals.js index f16c398e398..048c88e04bb 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.js +++ b/tests/baselines/reference/heterogeneousArrayLiterals.js @@ -138,6 +138,7 @@ var __extends = this.__extends || function (d, b) { __.prototype = b.prototype; d.prototype = new __(); }; +// type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [1, '']; var b = [1, null]; var c = [1, '', null]; @@ -189,6 +190,7 @@ var Derived; })(Derived || (Derived = {})); var WithContextualType; (function (WithContextualType) { + // no errors var a = [derived, derived2]; var b = [null]; var c = []; diff --git a/tests/baselines/reference/ifDoWhileStatements.js b/tests/baselines/reference/ifDoWhileStatements.js index 3597a21498d..13db187c7d8 100644 --- a/tests/baselines/reference/ifDoWhileStatements.js +++ b/tests/baselines/reference/ifDoWhileStatements.js @@ -302,6 +302,7 @@ while (new D()) { } do { } while (new D()); +// references var a = true; if (a) { } diff --git a/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js b/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js index 23184bcd69c..33dad54f8ea 100644 --- a/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js +++ b/tests/baselines/reference/implicitAnyDeclareFunctionExprWithoutFormalType.js @@ -18,6 +18,7 @@ var lambda10 = function temp1() { return 5; } //// [implicitAnyDeclareFunctionExprWithoutFormalType.js] +// these should be errors for implicit any parameter var lambda = function (l1) { }; var lambd2 = function (ll1, ll2) { @@ -27,6 +28,7 @@ var lamda3 = function myLambda3(myParam) { var lamda4 = function () { return null; }; +// these should be error for implicit any return type var lambda5 = function temp() { return null; }; @@ -39,6 +41,7 @@ var lambda7 = function temp() { var lambda8 = function () { return undefined; }; +// this shouldn't be an error var lambda9 = function () { return 5; }; diff --git a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js index 274c263d4f2..8e9f91fa138 100644 --- a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js +++ b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js @@ -23,11 +23,13 @@ var C = (function () { } return C; })(); +// this should be an error var x; var x1; var x11; var x2; var x3; +// this should not be an error var bar; var foo; var x4; diff --git a/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js b/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js index 514d9c1dd76..fd2bb9e103f 100644 --- a/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js +++ b/tests/baselines/reference/implicitAnyDeclareVariablesWithoutTypeAndInit.js @@ -12,11 +12,13 @@ declare var bar2: any; var x1: any; var y1 = new x1; //// [implicitAnyDeclareVariablesWithoutTypeAndInit.js] +// this should be an error var x; function func(k) { } ; func(x); +// this shouldn't be an error var bar = 3; var bar1; var x1; diff --git a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js index f5dbea07b93..eeb13957cdf 100644 --- a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js +++ b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js @@ -36,6 +36,7 @@ var newC2 = new C([], null) //// [implicitAnyFunctionInvocationWithAnyArguements.js] +// this should be errors var arg0 = null; var anyArray = [null, undefined]; var objL; diff --git a/tests/baselines/reference/implicitAnyWidenToAny.js b/tests/baselines/reference/implicitAnyWidenToAny.js index cad9ade340e..75388d5d267 100644 --- a/tests/baselines/reference/implicitAnyWidenToAny.js +++ b/tests/baselines/reference/implicitAnyWidenToAny.js @@ -28,6 +28,7 @@ var obj1 = anyReturnFunc(); //// [implicitAnyWidenToAny.js] +// these should be errors var x = null; var x1 = undefined; var widenArray = [null, undefined]; diff --git a/tests/baselines/reference/inOperatorWithInvalidOperands.js b/tests/baselines/reference/inOperatorWithInvalidOperands.js index d8c99c072f8..eb117aafde3 100644 --- a/tests/baselines/reference/inOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/inOperatorWithInvalidOperands.js @@ -46,6 +46,8 @@ var E; E[E["a"] = 0] = "a"; })(E || (E = {})); var x; +// invalid left operands +// the left operand is required to be of type Any, the String primitive type, or the Number primitive type var a1; var a2; var a3; @@ -59,6 +61,8 @@ var ra6 = undefined in x; var ra7 = 0 /* a */ in x; var ra8 = false in x; var ra9 = {} in x; +// invalid right operands +// the right operand is required to be of type Any, an object type, or a type parameter type var b1; var b2; var b3; @@ -72,4 +76,5 @@ var rb6 = x in false; var rb7 = x in ''; var rb8 = x in null; var rb9 = x in undefined; +// both operands are invalid var rc1 = {} in ''; diff --git a/tests/baselines/reference/inOperatorWithValidOperands.js b/tests/baselines/reference/inOperatorWithValidOperands.js index b9b40d75f55..16df96f22fb 100644 --- a/tests/baselines/reference/inOperatorWithValidOperands.js +++ b/tests/baselines/reference/inOperatorWithValidOperands.js @@ -25,6 +25,8 @@ function foo(t: T) { //// [inOperatorWithValidOperands.js] var x; +// valid left operands +// the left operand is required to be of type Any, the String primitive type, or the Number primitive type var a1; var a2; var ra1 = x in x; @@ -32,6 +34,8 @@ var ra2 = a1 in x; var ra3 = a2 in x; var ra4 = '' in x; var ra5 = 0 in x; +// valid right operands +// the right operand is required to be of type Any, an object type, or a type parameter type var b1; var rb1 = x in b1; var rb2 = x in {}; diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js index f7b9fb4effc..551c54feeda 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js @@ -49,6 +49,7 @@ objA.a++; M.n++; //// [incrementOperatorWithAnyOtherType.js] +// ++ operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -63,10 +64,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = ++ANY; var ResultIsNumber2 = ++ANY1; var ResultIsNumber3 = ANY1++; var ResultIsNumber4 = ANY1++; +// expressions var ResultIsNumber5 = ++ANY2[0]; var ResultIsNumber6 = ++obj.x; var ResultIsNumber7 = ++obj.y; diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js index 928f0a59e4d..fb9c5fd1e60 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -70,6 +70,7 @@ ANY2++; ++ANY2[0]++; //// [incrementOperatorWithAnyOtherTypeInvalidOperations.js] +// ++ operator on any type var ANY1; var ANY2 = [1, 2]; var obj; @@ -93,6 +94,7 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = ++ANY2; var ResultIsNumber2 = ++A; var ResultIsNumber3 = ++M; @@ -103,12 +105,14 @@ var ResultIsNumber7 = A++; var ResultIsNumber8 = M++; var ResultIsNumber9 = obj++; var ResultIsNumber10 = obj1++; +// any type literal var ResultIsNumber11 = ++{}; var ResultIsNumber12 = ++null; var ResultIsNumber13 = ++undefined; var ResultIsNumber14 = null++; var ResultIsNumber15 = {}++; var ResultIsNumber16 = undefined++; +// any type expressions var ResultIsNumber17 = ++foo(); var ResultIsNumber18 = ++A.foo(); var ResultIsNumber19 = ++(null + undefined); diff --git a/tests/baselines/reference/incrementOperatorWithEnumType.js b/tests/baselines/reference/incrementOperatorWithEnumType.js index 34faaf2201a..cd92b6b1e5e 100644 --- a/tests/baselines/reference/incrementOperatorWithEnumType.js +++ b/tests/baselines/reference/incrementOperatorWithEnumType.js @@ -20,6 +20,7 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// expression var ResultIsNumber1 = ++ENUM1[1]; var ResultIsNumber2 = ENUM1[1]++; ++ENUM1[1]; diff --git a/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js index fa6e778c235..23149c23874 100644 --- a/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithEnumTypeInvalidOperations.js @@ -34,10 +34,12 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = ++ENUM; var ResultIsNumber2 = ++ENUM1; var ResultIsNumber3 = ENUM++; var ResultIsNumber4 = ENUM1++; +// enum type expressions var ResultIsNumber5 = ++(ENUM[1] + ENUM[2]); var ResultIsNumber6 = (ENUM[1] + ENUM[2])++; ++ENUM; diff --git a/tests/baselines/reference/incrementOperatorWithNumberType.js b/tests/baselines/reference/incrementOperatorWithNumberType.js index 90c23de9adc..e78892077c0 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberType.js +++ b/tests/baselines/reference/incrementOperatorWithNumberType.js @@ -40,6 +40,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithNumberType.js] +// ++ operator on number type var NUMBER; var NUMBER1 = [1, 2]; var A = (function () { @@ -52,8 +53,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = ++NUMBER; var ResultIsNumber2 = NUMBER++; +// expressions var ResultIsNumber3 = ++objA.a; var ResultIsNumber4 = ++M.n; var ResultIsNumber5 = objA.a++; diff --git a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js index a328d49cf63..6319774d505 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js @@ -47,6 +47,7 @@ NUMBER1++; foo()++; //// [incrementOperatorWithNumberTypeInvalidOperations.js] +// ++ operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -65,8 +66,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +//number type var var ResultIsNumber1 = ++NUMBER1; var ResultIsNumber2 = NUMBER1++; +// number type literal var ResultIsNumber3 = ++1; var ResultIsNumber4 = ++{ x: 1, y: 2 }; var ResultIsNumber5 = ++{ x: 1, y: function (n) { @@ -77,6 +80,7 @@ var ResultIsNumber7 = { x: 1, y: 2 }++; var ResultIsNumber8 = { x: 1, y: function (n) { return n; } }++; +// number type expressions var ResultIsNumber9 = ++foo(); var ResultIsNumber10 = ++A.foo(); var ResultIsNumber11 = ++(NUMBER + NUMBER); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js index f321ba1f238..a409b0bc95b 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js @@ -55,6 +55,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithUnsupportedBooleanType.js] +// ++ operator on boolean type var BOOLEAN; function foo() { return true; @@ -72,8 +73,10 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = ++BOOLEAN; var ResultIsNumber2 = BOOLEAN++; +// boolean type literal var ResultIsNumber3 = ++true; var ResultIsNumber4 = ++{ x: true, y: false }; var ResultIsNumber5 = ++{ x: true, y: function (n) { @@ -84,6 +87,7 @@ var ResultIsNumber7 = { x: true, y: false }++; var ResultIsNumber8 = { x: true, y: function (n) { return n; } }++; +// boolean type expressions var ResultIsNumber9 = ++objA.a; var ResultIsNumber10 = ++M.n; var ResultIsNumber11 = ++foo(); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js index 1e426c964a1..c932542c3fb 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js @@ -66,6 +66,7 @@ M.n++; objA.a++, M.n++; //// [incrementOperatorWithUnsupportedStringType.js] +// ++ operator on string type var STRING; var STRING1 = ["", ""]; function foo() { @@ -84,10 +85,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = ++STRING; var ResultIsNumber2 = ++STRING1; var ResultIsNumber3 = STRING++; var ResultIsNumber4 = STRING1++; +// string type literal var ResultIsNumber5 = ++""; var ResultIsNumber6 = ++{ x: "", y: "" }; var ResultIsNumber7 = ++{ x: "", y: function (s) { @@ -98,6 +101,7 @@ var ResultIsNumber9 = { x: "", y: "" }++; var ResultIsNumber10 = { x: "", y: function (s) { return s; } }++; +// string type expressions var ResultIsNumber11 = ++objA.a; var ResultIsNumber12 = ++M.n; var ResultIsNumber13 = ++STRING1[0]; diff --git a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js index 1894150ac27..1300e52e77b 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js +++ b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.js @@ -35,12 +35,14 @@ s = map("", ("", identity)); //// [inferentialTypingWithFunctionTypeSyntacticScenarios.js] var s; +// dotted name var dottedIdentity = { x: identity }; s = map("", dottedIdentity.x); s = map("", dottedIdentity['x']); s = map("", (function () { return identity; })()); var ic; s = map("", new ic()); +// assignment var t; s = map("", t = identity); s = map("", identity); diff --git a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js index 54089541fd3..affae8a2f02 100644 --- a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js +++ b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.js @@ -40,6 +40,7 @@ var x5: void = b('A0'); var b; b('foo').charAt(0); var b; +// non of these lines should error var x1 = b('B2'); var x2 = b('B1'); var x3 = b('A2'); diff --git a/tests/baselines/reference/initializersWidened.js b/tests/baselines/reference/initializersWidened.js index d16b6ec6889..fce0750a600 100644 --- a/tests/baselines/reference/initializersWidened.js +++ b/tests/baselines/reference/initializersWidened.js @@ -5,5 +5,6 @@ var x = null; var y = undefined; //// [initializersWidened.js] +// these are widened to any at the point of assignment var x = null; var y = undefined; diff --git a/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js b/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js index af530635e5e..ebe38a18f82 100644 --- a/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js +++ b/tests/baselines/reference/innerTypeCheckOfLambdaArgument.js @@ -17,5 +17,7 @@ takesCallback( function takesCallback(callback) { } takesCallback(function inner(n) { + // this line should raise an error + // otherwise, there's a bug in overload resolution / partial typechecking var k = 10; }); diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js index 0089ac167bc..8309b7e7c01 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js @@ -55,6 +55,8 @@ var C = (function () { return C; })(); var x; +// invalid left operand +// the left operand is required to be of type Any, an object type, or a type parameter type var a1; var a2; var a3; @@ -68,6 +70,8 @@ var ra6 = true instanceof x; var ra7 = '' instanceof x; var ra8 = null instanceof x; var ra9 = undefined instanceof x; +// invalid right operand +// the right operand to be of type Any or a subtype of the 'Function' interface type var b1; var b2; var b3; @@ -85,4 +89,5 @@ var rb7 = x instanceof ''; var rb8 = x instanceof o1; var rb9 = x instanceof o2; var rb10 = x instanceof o3; +// both operands are invalid var rc1 = '' instanceof {}; diff --git a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js index 5a83ab54f06..3fc0c7476d5 100644 --- a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js +++ b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js @@ -28,4 +28,5 @@ var D = (function () { } return D; })(); +// BUG 794238 var d = new D(); diff --git a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js index 5faaaea027d..8298dd04250 100644 --- a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js +++ b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js @@ -31,4 +31,5 @@ var r = new Foo(); var f; var r2 = new f(); var a; +// BUG 790977 var r2 = new a(); diff --git a/tests/baselines/reference/instantiatedModule.js b/tests/baselines/reference/instantiatedModule.js index ab5081c7797..ec5ae773f35 100644 --- a/tests/baselines/reference/instantiatedModule.js +++ b/tests/baselines/reference/instantiatedModule.js @@ -65,6 +65,7 @@ var M; (function (M) { M.Point = 1; })(M || (M = {})); +// primary expression var m; var m = M; var a1; @@ -86,6 +87,7 @@ var M2; })(M2 || (M2 = {})); var m2; var m2 = M2; +// static side of the class var a2; var a2 = m2.Point; var a2 = M2.Point; diff --git a/tests/baselines/reference/interfaceAssignmentCompat.js b/tests/baselines/reference/interfaceAssignmentCompat.js index d6ff0978735..d85dae45159 100644 --- a/tests/baselines/reference/interfaceAssignmentCompat.js +++ b/tests/baselines/reference/interfaceAssignmentCompat.js @@ -76,6 +76,7 @@ var M; x[1] = { color: 1 /* Blue */ }; x[2] = { color: 0 /* Green */ }; x = x.sort(CompareYeux); + // type of z inferred from specialized array type var z = x.sort(CompareEyes); for (var i = 0, len = z.length; i < len; i++) { result += ((Color._map[z[i].color]) + "\r\n"); diff --git a/tests/baselines/reference/interfaceImplementation1.js b/tests/baselines/reference/interfaceImplementation1.js index 6a7687e45f9..68c6fe5ad7e 100644 --- a/tests/baselines/reference/interfaceImplementation1.js +++ b/tests/baselines/reference/interfaceImplementation1.js @@ -64,6 +64,9 @@ var a = function () { return new C2(); }; new a(); +/*var b:I4 = C2; +new b(); +*/ var c; c[5]; c["foo"]; diff --git a/tests/baselines/reference/invalidImportAliasIdentifiers.js b/tests/baselines/reference/invalidImportAliasIdentifiers.js index c0b6092fd1e..2b31f5abebd 100644 --- a/tests/baselines/reference/invalidImportAliasIdentifiers.js +++ b/tests/baselines/reference/invalidImportAliasIdentifiers.js @@ -25,6 +25,7 @@ import i = I; //// [invalidImportAliasIdentifiers.js] +// none of these should work, since non are actually modules var V = 12; var C = (function () { function C() { diff --git a/tests/baselines/reference/invalidMultipleVariableDeclarations.js b/tests/baselines/reference/invalidMultipleVariableDeclarations.js index bf8261cbaa8..fe3d62c4ba5 100644 --- a/tests/baselines/reference/invalidMultipleVariableDeclarations.js +++ b/tests/baselines/reference/invalidMultipleVariableDeclarations.js @@ -93,6 +93,7 @@ var M; } M.F2 = F2; })(M || (M = {})); +// all of these are errors var a; var a = 1; var a = 'a string'; diff --git a/tests/baselines/reference/library_RegExpExecArraySlice.js b/tests/baselines/reference/library_RegExpExecArraySlice.js index f5a07524726..ae510e90dcb 100644 --- a/tests/baselines/reference/library_RegExpExecArraySlice.js +++ b/tests/baselines/reference/library_RegExpExecArraySlice.js @@ -6,6 +6,7 @@ regExpExecArrayValue.slice(0); regExpExecArrayValue.slice(0,1); //// [library_RegExpExecArraySlice.js] +// RegExpExecArray.slice can have zero, one, or two arguments var regExpExecArrayValue; regExpExecArrayValue.slice(); regExpExecArrayValue.slice(0); diff --git a/tests/baselines/reference/literals-negative.js b/tests/baselines/reference/literals-negative.js index a16e1524e8c..8dafcf0287c 100644 --- a/tests/baselines/reference/literals-negative.js +++ b/tests/baselines/reference/literals-negative.js @@ -12,6 +12,8 @@ if(null === isVoid()) { } //// [literals-negative.js] +// Type type of the null literal is the Null type. +// Null can be converted to anything except Void var n = (null); var s = (null); var b = (n); diff --git a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js index 555f6f95e6e..c1ec8aeffc4 100644 --- a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js @@ -60,6 +60,7 @@ var ResultIsBoolean21 = !!!(ANY + ANY1); !M.n; //// [logicalNotOperatorWithAnyOtherType.js] +// ! operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -84,14 +85,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsBoolean1 = !ANY1; var ResultIsBoolean2 = !ANY2; var ResultIsBoolean3 = !A; var ResultIsBoolean4 = !M; var ResultIsBoolean5 = !obj; var ResultIsBoolean6 = !obj1; +// any type literal var ResultIsBoolean7 = !undefined; var ResultIsBoolean8 = !null; +// any type expressions var ResultIsBoolean9 = !ANY2[0]; var ResultIsBoolean10 = !obj1.x; var ResultIsBoolean11 = !obj1.y; @@ -103,6 +107,7 @@ var ResultIsBoolean16 = !(ANY + ANY1); var ResultIsBoolean17 = !(null + undefined); var ResultIsBoolean18 = !(null + null); var ResultIsBoolean19 = !(undefined + undefined); +// multiple ! operators var ResultIsBoolean20 = !!ANY; var ResultIsBoolean21 = !!!(ANY + ANY1); !ANY; diff --git a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js index 9b7e774138f..4254153d304 100644 --- a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js @@ -39,6 +39,7 @@ var ResultIsBoolean = !!BOOLEAN; !M.n; //// [logicalNotOperatorWithBooleanType.js] +// ! operator on boolean type var BOOLEAN; function foo() { return true; @@ -56,13 +57,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsBoolean1 = !BOOLEAN; +// boolean type literal var ResultIsBoolean2 = !true; var ResultIsBoolean3 = !{ x: true, y: false }; +// boolean type expressions var ResultIsBoolean4 = !objA.a; var ResultIsBoolean5 = !M.n; var ResultIsBoolean6 = !foo(); var ResultIsBoolean7 = !A.foo(); +// multiple ! operators var ResultIsBoolean = !!BOOLEAN; !true; !BOOLEAN; diff --git a/tests/baselines/reference/logicalNotOperatorWithEnumType.js b/tests/baselines/reference/logicalNotOperatorWithEnumType.js index 2c5ddc04e58..7c32b423c18 100644 --- a/tests/baselines/reference/logicalNotOperatorWithEnumType.js +++ b/tests/baselines/reference/logicalNotOperatorWithEnumType.js @@ -33,9 +33,12 @@ var ENUM1; (function (ENUM1) { })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsBoolean1 = !ENUM; +// enum type expressions var ResultIsBoolean2 = !ENUM[1]; var ResultIsBoolean3 = !(ENUM[1] + ENUM[2]); +// multiple ! operators var ResultIsBoolean4 = !!ENUM; var ResultIsBoolean5 = !!!(ENUM[1] + ENUM[2]); !ENUM; diff --git a/tests/baselines/reference/logicalNotOperatorWithNumberType.js b/tests/baselines/reference/logicalNotOperatorWithNumberType.js index 6ab8b76a81e..6a7d82304ab 100644 --- a/tests/baselines/reference/logicalNotOperatorWithNumberType.js +++ b/tests/baselines/reference/logicalNotOperatorWithNumberType.js @@ -46,6 +46,7 @@ var ResultIsBoolean13 = !!!(NUMBER + NUMBER); !objA.a, M.n; //// [logicalNotOperatorWithNumberType.js] +// ! operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -64,19 +65,23 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsBoolean1 = !NUMBER; var ResultIsBoolean2 = !NUMBER1; +// number type literal var ResultIsBoolean3 = !1; var ResultIsBoolean4 = !{ x: 1, y: 2 }; var ResultIsBoolean5 = !{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsBoolean6 = !objA.a; var ResultIsBoolean7 = !M.n; var ResultIsBoolean8 = !NUMBER1[0]; var ResultIsBoolean9 = !foo(); var ResultIsBoolean10 = !A.foo(); var ResultIsBoolean11 = !(NUMBER + NUMBER); +// multiple ! operator var ResultIsBoolean12 = !!NUMBER; var ResultIsBoolean13 = !!!(NUMBER + NUMBER); !1; diff --git a/tests/baselines/reference/logicalNotOperatorWithStringType.js b/tests/baselines/reference/logicalNotOperatorWithStringType.js index e259741e2f4..120c21c2e29 100644 --- a/tests/baselines/reference/logicalNotOperatorWithStringType.js +++ b/tests/baselines/reference/logicalNotOperatorWithStringType.js @@ -45,6 +45,7 @@ var ResultIsBoolean14 = !!!(STRING + STRING); !objA.a,M.n; //// [logicalNotOperatorWithStringType.js] +// ! operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -63,13 +64,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsBoolean1 = !STRING; var ResultIsBoolean2 = !STRING1; +// string type literal var ResultIsBoolean3 = !""; var ResultIsBoolean4 = !{ x: "", y: "" }; var ResultIsBoolean5 = !{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsBoolean6 = !objA.a; var ResultIsBoolean7 = !M.n; var ResultIsBoolean8 = !STRING1[0]; @@ -77,6 +81,7 @@ var ResultIsBoolean9 = !foo(); var ResultIsBoolean10 = !A.foo(); var ResultIsBoolean11 = !(STRING + STRING); var ResultIsBoolean12 = !STRING.charAt(0); +// multiple ! operator var ResultIsBoolean13 = !!STRING; var ResultIsBoolean14 = !!!(STRING + STRING); !""; diff --git a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js index 7997ecb0f2b..64bdc871571 100644 --- a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js +++ b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.js @@ -7,4 +7,8 @@ var r: { a: string } = { a: '', b: 123 } || { a: '', b: true }; //// [logicalOrExpressionIsContextuallyTyped.js] +// The || operator permits the operands to be of any type. +// If the || expression is contextually typed, the operands are contextually typed by the +// same type and the result is of the best common type of the contextual type and the two +// operand types. var r = { a: '', b: 123 } || { a: '', b: true }; diff --git a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js index 8de01245b31..73e1c33a4e0 100644 --- a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js +++ b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.js @@ -11,5 +11,10 @@ var a: (a: string) => string; var r = a || ((a) => a.toLowerCase()); //// [logicalOrExpressionIsNotContextuallyTyped.js] +// The || operator permits the operands to be of any type. +// If the || expression is not contextually typed, the right operand is contextually typed +// by the type of the left operand and the result is of the best common type of the two +// operand types. var a; +// bug 786110 var r = a || (function (a) { return a.toLowerCase(); }); diff --git a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js index 0a246ea49b4..042d72db50b 100644 --- a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js +++ b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.js @@ -32,6 +32,7 @@ function fn1(t, u) { } function fn2(t, u, v) { var r1 = t || u; + //var r2: T = t || u; var r3 = u || u; var r4 = u || u; var r5 = u || v; diff --git a/tests/baselines/reference/memberOverride.js b/tests/baselines/reference/memberOverride.js index aadeff78e8a..6191652131a 100644 --- a/tests/baselines/reference/memberOverride.js +++ b/tests/baselines/reference/memberOverride.js @@ -9,6 +9,8 @@ var x = { var n: number = x.a; //// [memberOverride.js] +// An object initialiser accepts the first definition for the same property with a different type signature +// Should compile, since the second declaration of a overrides the first var x = { a: "", a: 5 diff --git a/tests/baselines/reference/mergeThreeInterfaces.js b/tests/baselines/reference/mergeThreeInterfaces.js index e31395b5837..74da0a6c0f3 100644 --- a/tests/baselines/reference/mergeThreeInterfaces.js +++ b/tests/baselines/reference/mergeThreeInterfaces.js @@ -91,10 +91,14 @@ var M; (function (M) { var a; var r1 = a.foo; + // BUG 856491 var r2 = a.bar; + // BUG 856491 var r3 = a.baz; var b; var r4 = b.foo; + // BUG 856491 var r5 = b.bar; + // BUG 856491 var r6 = b.baz; })(M || (M = {})); diff --git a/tests/baselines/reference/mergeTwoInterfaces.js b/tests/baselines/reference/mergeTwoInterfaces.js index eb5bc7b621d..14194a9a138 100644 --- a/tests/baselines/reference/mergeTwoInterfaces.js +++ b/tests/baselines/reference/mergeTwoInterfaces.js @@ -68,8 +68,10 @@ var M; (function (M) { var a; var r1 = a.foo; + // BUG 856491 var r2 = a.bar; var b; var r3 = b.foo; + // BUG 856491 var r4 = b.bar; })(M || (M = {})); diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js index 70e8de4c62a..fab0f72dada 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js @@ -51,6 +51,7 @@ var M; (function (plop) { })(_plop.plop || (_plop.plop = {})); var plop = _plop.plop; + // Emit these references as follows var v1 = gunk; var v2 = buz; _plop.v3 = _plop.doom; diff --git a/tests/baselines/reference/methodSignaturesWithOverloads.js b/tests/baselines/reference/methodSignaturesWithOverloads.js index bbff03bcc75..7f80ecbb2d0 100644 --- a/tests/baselines/reference/methodSignaturesWithOverloads.js +++ b/tests/baselines/reference/methodSignaturesWithOverloads.js @@ -20,5 +20,6 @@ var c2: { }; //// [methodSignaturesWithOverloads.js] +// Object type literals permit overloads with optionality but they must match var c; var c2; diff --git a/tests/baselines/reference/methodSignaturesWithOverloads2.js b/tests/baselines/reference/methodSignaturesWithOverloads2.js index 95f642e6b54..63252090b2c 100644 --- a/tests/baselines/reference/methodSignaturesWithOverloads2.js +++ b/tests/baselines/reference/methodSignaturesWithOverloads2.js @@ -29,6 +29,7 @@ c2.func4 = c2.func5; c2.func5 = c2.func4; //// [methodSignaturesWithOverloads2.js] +// Object type literals permit overloads with optionality but they must match var c; c.func4 = c.func5; c.func5 = c.func4; diff --git a/tests/baselines/reference/moduleIdentifiers.js b/tests/baselines/reference/moduleIdentifiers.js index 61298825f04..e2050d98f5d 100644 --- a/tests/baselines/reference/moduleIdentifiers.js +++ b/tests/baselines/reference/moduleIdentifiers.js @@ -15,4 +15,6 @@ var M; (function (M) { M.a = 1; })(M || (M = {})); +//var p: M.P; +//var m: M = M; var x1 = M.a; diff --git a/tests/baselines/reference/nameCollision.js b/tests/baselines/reference/nameCollision.js index 307e30053e5..ed0f6abd476 100644 --- a/tests/baselines/reference/nameCollision.js +++ b/tests/baselines/reference/nameCollision.js @@ -49,6 +49,8 @@ module D { //// [nameCollision.js] var A; (function (__A) { + // these 2 statements force an underscore before the 'A' + // in the generated function call. var A = 12; var _A = ''; })(A || (A = {})); diff --git a/tests/baselines/reference/negateOperatorWithAnyOtherType.js b/tests/baselines/reference/negateOperatorWithAnyOtherType.js index 2652ddf81d5..58c1ba58e39 100644 --- a/tests/baselines/reference/negateOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/negateOperatorWithAnyOtherType.js @@ -54,6 +54,7 @@ var ResultIsNumber15 = -(ANY - ANY1); -M.n; //// [negateOperatorWithAnyOtherType.js] +// - operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -78,14 +79,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any type var var ResultIsNumber1 = -ANY1; var ResultIsNumber2 = -ANY2; var ResultIsNumber3 = -A; var ResultIsNumber4 = -M; var ResultIsNumber5 = -obj; var ResultIsNumber6 = -obj1; +// any type literal var ResultIsNumber7 = -undefined; var ResultIsNumber = -null; +// any type expressions var ResultIsNumber8 = -ANY2[0]; var ResultIsNumber9 = -obj1.x; var ResultIsNumber10 = -obj1.y; diff --git a/tests/baselines/reference/negateOperatorWithBooleanType.js b/tests/baselines/reference/negateOperatorWithBooleanType.js index a05e053bb4d..9ca22347acd 100644 --- a/tests/baselines/reference/negateOperatorWithBooleanType.js +++ b/tests/baselines/reference/negateOperatorWithBooleanType.js @@ -36,6 +36,7 @@ var ResultIsNumber7 = -A.foo(); -M.n; //// [negateOperatorWithBooleanType.js] +// - operator on boolean type var BOOLEAN; function foo() { return true; @@ -53,9 +54,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = -BOOLEAN; +// boolean type literal var ResultIsNumber2 = -true; var ResultIsNumber3 = -{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = -objA.a; var ResultIsNumber5 = -M.n; var ResultIsNumber6 = -foo(); diff --git a/tests/baselines/reference/negateOperatorWithEnumType.js b/tests/baselines/reference/negateOperatorWithEnumType.js index fa45b524df5..d4759e1dc10 100644 --- a/tests/baselines/reference/negateOperatorWithEnumType.js +++ b/tests/baselines/reference/negateOperatorWithEnumType.js @@ -29,7 +29,9 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = -ENUM; +// expressions var ResultIsNumber2 = -ENUM1[1]; var ResultIsNumber3 = -(ENUM1[1] + ENUM1[2]); -ENUM; diff --git a/tests/baselines/reference/negateOperatorWithNumberType.js b/tests/baselines/reference/negateOperatorWithNumberType.js index a68e1351d41..901ce55fce6 100644 --- a/tests/baselines/reference/negateOperatorWithNumberType.js +++ b/tests/baselines/reference/negateOperatorWithNumberType.js @@ -42,6 +42,7 @@ var ResultIsNumber11 = -(NUMBER - NUMBER); -objA.a, M.n; //// [negateOperatorWithNumberType.js] +// - operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -60,13 +61,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = -NUMBER; var ResultIsNumber2 = -NUMBER1; +// number type literal var ResultIsNumber3 = -1; var ResultIsNumber4 = -{ x: 1, y: 2 }; var ResultIsNumber5 = -{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = -objA.a; var ResultIsNumber7 = -M.n; var ResultIsNumber8 = -NUMBER1[0]; diff --git a/tests/baselines/reference/negateOperatorWithStringType.js b/tests/baselines/reference/negateOperatorWithStringType.js index abcb6a6056f..a30a0204616 100644 --- a/tests/baselines/reference/negateOperatorWithStringType.js +++ b/tests/baselines/reference/negateOperatorWithStringType.js @@ -41,6 +41,7 @@ var ResultIsNumber12 = -STRING.charAt(0); -objA.a,M.n; //// [negateOperatorWithStringType.js] +// - operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -59,13 +60,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = -STRING; var ResultIsNumber2 = -STRING1; +// string type literal var ResultIsNumber3 = -""; var ResultIsNumber4 = -{ x: "", y: "" }; var ResultIsNumber5 = -{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = -objA.a; var ResultIsNumber7 = -M.n; var ResultIsNumber8 = -STRING1[0]; diff --git a/tests/baselines/reference/newOperatorConformance.js b/tests/baselines/reference/newOperatorConformance.js index 0fe5565c2f7..31eba450a05 100644 --- a/tests/baselines/reference/newOperatorConformance.js +++ b/tests/baselines/reference/newOperatorConformance.js @@ -82,12 +82,16 @@ var T = (function () { var anyCtor; var anyCtor1; var nestedCtor; +// Construct expression with no parentheses for construct signature with 0 parameters var a = new C0; var a; +// Generic construct expression with no parentheses var c1 = new T; var c1; +// Construct expression where constructor is of type 'any' with no parentheses var d = new anyCtor; var d; +// Construct expression where constructor is of type 'any' with > 1 arg var d = new anyCtor1(undefined); function newFn1(s) { var p = new s; @@ -101,6 +105,7 @@ function fnVoid() { } var t = new fnVoid(); var t; +// Chained new expressions var nested = new (new (new nestedCtor())())(); var n = new nested(); var n = new nested(); diff --git a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js index 24425ff0d0c..5392b163477 100644 --- a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js +++ b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.js @@ -13,4 +13,5 @@ var x = new Something(); //// [app.js] +/// var x = new Something(); diff --git a/tests/baselines/reference/noImplicitAnyForIn.js b/tests/baselines/reference/noImplicitAnyForIn.js index d60d08313ec..c8743936a9a 100644 --- a/tests/baselines/reference/noImplicitAnyForIn.js +++ b/tests/baselines/reference/noImplicitAnyForIn.js @@ -35,19 +35,23 @@ for (n[idx++] in m); var x = [[1, 2, 3], ["hello"]]; for (var i in x) { for (var j in x[i]) { + //Should yield an implicit 'any' error var _j = x[i][j]; } for (var k in x[0]) { var k1 = x[0]; + //Should yield an implicit 'any' error var k2 = k1[k]; } } for (var a in x) { + // Should yield an implicit 'any' error. var b; var c = a || b; } var idx = 0; var m = [1, 2, 3, 4, 5]; +// Should yield an implicit 'any' error. var n = [[]] || []; for (n[idx++] in m) ; diff --git a/tests/baselines/reference/noImplicitAnyIndexing.js b/tests/baselines/reference/noImplicitAnyIndexing.js index 0e7bc3e328f..ebadbd9a121 100644 --- a/tests/baselines/reference/noImplicitAnyIndexing.js +++ b/tests/baselines/reference/noImplicitAnyIndexing.js @@ -54,14 +54,21 @@ var MyEmusEnum; (function (MyEmusEnum) { MyEmusEnum[MyEmusEnum["emu"] = 0] = "emu"; })(MyEmusEnum || (MyEmusEnum = {})); +// Should be okay; should be a string. var strRepresentation1 = MyEmusEnum[0]; +// Should be okay; should be a string. var strRepresentation2 = MyEmusEnum[0 /* emu */]; +// Should be implicit 'any' ; property access fails, no string indexer. var strRepresentation3 = MyEmusEnum["monehh"]; +// Should be okay; should be a MyEmusEnum var strRepresentation4 = MyEmusEnum["emu"]; +// Should report an implicit 'any'. var x = {}["hi"]; +// Should report an implicit 'any'. var y = {}[10]; var hi = "hi"; var emptyObj = {}; +// Should report an implicit 'any'. var z1 = emptyObj[hi]; var z2 = emptyObj[hi]; var m = { diff --git a/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js b/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js index cef6b8faa16..3618d1b530a 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js +++ b/tests/baselines/reference/noImplicitAnyParametersInBareFunctions.js @@ -69,10 +69,15 @@ function f7(x) { } function f8(x3, y3) { } +// No implicit-'any' errors. var f9 = function () { return ""; }; +// Implicit-'any' errors for x. var f10 = function (x) { return ""; }; +// Implicit-'any' errors for x, y, and z. var f11 = function (x, y, z) { return ""; }; +// Implicit-'any' errors for x and z. var f12 = function (x, y, z) { return ""; }; +// Implicit-'any[]' error for r. var f13 = function () { var r = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -80,6 +85,7 @@ var f13 = function () { } return ""; }; +// Implicit-'any'/'any[]' errors for x, r. var f14 = function (x) { var r = []; for (var _i = 1; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/noImplicitAnyParametersInModule.js b/tests/baselines/reference/noImplicitAnyParametersInModule.js index d606f8d2f53..0f8253c1e32 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInModule.js +++ b/tests/baselines/reference/noImplicitAnyParametersInModule.js @@ -73,10 +73,15 @@ var M; } function m_f8(x3, y3) { } + // No implicit-'any' errors. var m_f9 = function () { return ""; }; + // Implicit-'any' error for x. var m_f10 = function (x) { return ""; }; + // Implicit-'any' errors for x, y, and z. var m_f11 = function (x, y, z) { return ""; }; + // Implicit-'any' errors for x and z. var m_f12 = function (x, y, z) { return ""; }; + // Implicit-'any[]' errors for r. var m_f13 = function () { var r = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -84,6 +89,7 @@ var M; } return ""; }; + // Implicit-'any'/'any[]' errors for x and r. var m_f14 = function (x) { var r = []; for (var _i = 1; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/nonInstantiatedModule.js b/tests/baselines/reference/nonInstantiatedModule.js index 1284b38fe16..cf69d5b1bf6 100644 --- a/tests/baselines/reference/nonInstantiatedModule.js +++ b/tests/baselines/reference/nonInstantiatedModule.js @@ -50,6 +50,7 @@ var M; (function (M) { M.a = 1; })(M || (M = {})); +// primary expression var m; var m = M; var a1; diff --git a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js index c7f31731d0e..ae86031ca0c 100644 --- a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js +++ b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js @@ -92,6 +92,7 @@ var r20 = true ? null : {}; //// [nullIsSubtypeOfEverythingButUndefined.js] +// null is a subtype of any other types except undefined var r0 = true ? null : null; var r0 = true ? null : null; var u; @@ -175,6 +176,10 @@ function f18(x) { var r18 = true ? x : null; var r18 = true ? null : x; } +//function f18(x: U) { +// var r18 = true ? x : null; +// var r18 = true ? null : x; +//} var r19 = true ? new Object() : null; var r19 = true ? null : new Object(); var r20 = true ? {} : null; diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index 16b5c0f1470..c1cb06601a7 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -76,6 +76,7 @@ var Foo = (function () { return Foo; })(); var a; +// error var b = { 1.0: new A(), 2.0: new B(), diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index d5430dd52e5..f3c5760ae63 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -134,5 +134,6 @@ var Slug = (function () { } return Slug; })(); +// ElementAccessExpressions can only contain one expression. There should be a parse error here. var foods = new PetFood[new IceCream('Mint chocolate chip'), Cookie('Chocolate chip', false), new Cookie('Peanut butter', true)]; var foods2 = new PetFood[new IceCream('Mint chocolate chip'), Cookie('Chocolate chip', false), new Cookie('Peanut butter', true)]; diff --git a/tests/baselines/reference/objectLitStructuralTypeMismatch.js b/tests/baselines/reference/objectLitStructuralTypeMismatch.js index 421f30fe6a9..380b8a2aacf 100644 --- a/tests/baselines/reference/objectLitStructuralTypeMismatch.js +++ b/tests/baselines/reference/objectLitStructuralTypeMismatch.js @@ -3,4 +3,5 @@ var x: { a: number; } = { b: 5 }; //// [objectLitStructuralTypeMismatch.js] +// Shouldn't compile var x = { b: 5 }; diff --git a/tests/baselines/reference/objectLiteralWidened.js b/tests/baselines/reference/objectLiteralWidened.js index 30dc1109ef0..4de228cb14a 100644 --- a/tests/baselines/reference/objectLiteralWidened.js +++ b/tests/baselines/reference/objectLiteralWidened.js @@ -15,6 +15,7 @@ var y = { } //// [objectLiteralWidened.js] +// object literal properties are widened to any var x = { foo: null, bar: undefined diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js index d2fc04fabdf..34f81e0cf59 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js @@ -143,6 +143,7 @@ var r3 = c[1.]; var r5 = c['1..']; var r6 = c['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -161,6 +162,7 @@ var r3 = c[1.]; var r5 = i['1..']; var r6 = i['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -179,6 +181,7 @@ var r3 = c[1.]; var r5 = a['1..']; var r6 = a['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; @@ -206,6 +209,7 @@ var r3 = c[1.]; var r5 = b['1..']; var r6 = b['1.0']; var r3 = c[1.0]; +// BUG 823822 var r7 = i[-1]; var r7 = i[-1.0]; var r8 = i["-1.0"]; diff --git a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js index 9c674854cdc..5d7073db876 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js +++ b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js @@ -63,16 +63,19 @@ var c; var r = c[" "]; var r2 = c[" "]; var r3 = c["a b"]; +// BUG 817263 var r4 = c["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var i; var r = i[" "]; var r2 = i[" "]; var r3 = i["a b"]; +// BUG 817263 var r4 = i["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var a; var r = a[" "]; var r2 = a[" "]; var r3 = a["a b"]; +// BUG 817263 var r4 = a["~!@#$%^&*()_+{}|:'<>?\/.,`"]; var b = { " ": 1, @@ -82,4 +85,5 @@ var b = { var r = b[" "]; var r2 = b[" "]; var r3 = b["a b"]; +// BUG 817263 var r4 = b["~!@#$%^&*()_+{}|:'<>?\/.,`"]; diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js index ba8f45a82d7..5e0f49bc295 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.js @@ -36,6 +36,7 @@ var a1 = new a({}); //// [overloadBindingAcrossDeclarationBoundaries.js] var a; +// These should all be Opt3 var a1 = a.a({}); var a1 = a({}); var a1 = new a({}); diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js index 6037f45bc1e..f2eb0d6b886 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.js @@ -42,6 +42,7 @@ var a1 = new a({}); //// [overloadBindingAcrossDeclarationBoundaries_file0.js] //// [overloadBindingAcrossDeclarationBoundaries_file1.js] var a; +// These should all be Opt3 var a1 = a.a({}); var a1 = a({}); var a1 = new a({}); diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js index 5d542baa07c..6d7b72ef951 100644 --- a/tests/baselines/reference/overloadResolution.js +++ b/tests/baselines/reference/overloadResolution.js @@ -138,6 +138,7 @@ function fn2() { } var d = fn2(0, undefined); var d; +// Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = fn2(0, ''); fn2('', 0); fn2('', 0); @@ -148,6 +149,7 @@ var s = fn3(3); var s = fn3('', 3, ''); var n = fn3(5, 5, 5); var n; +// Generic overloads with differing arity called with type arguments matching each overload type parameter count var s = fn3(4); var s = fn3('', '', ''); var n = fn3('', '', 3); diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js index dadb6af41e8..431720e7a90 100644 --- a/tests/baselines/reference/overloadResolutionClassConstructors.js +++ b/tests/baselines/reference/overloadResolutionClassConstructors.js @@ -147,6 +147,7 @@ var fn2 = (function () { return fn2; })(); var d = new fn2(0, undefined); +// Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = new fn2(0, ''); new fn2('', 0); new fn2('', 0); diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js index c018922c23d..0c076f80a7d 100644 --- a/tests/baselines/reference/overloadResolutionConstructors.js +++ b/tests/baselines/reference/overloadResolutionConstructors.js @@ -136,12 +136,14 @@ var SomeDerived3 = (function (_super) { return SomeDerived3; })(SomeBase); var fn1; +// Ambiguous call picks the first overload in declaration order var s = new fn1(undefined); var s; new fn1({}); var fn2; var d = new fn2(0, undefined); var d; +// Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = new fn2(0, ''); new fn2('', 0); new fn2('', 0); @@ -150,6 +152,7 @@ var s = new fn3(3); var s = new fn3('', 3, ''); var n = new fn3(5, 5, 5); var n; +// Generic overloads with differing arity called with type arguments matching each overload type parameter count var s = new fn3(4); var s = new fn3('', '', ''); var n = new fn3('', '', 3); diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index 8ba27fa41bf..e325e7ad8c0 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -67,10 +67,12 @@ var Derived3 = (function (_super) { return Derived3; })(Base); var d2; +// these are ok var htmlElement = d2.createElement("yo"); var htmlCanvasElement = d2.createElement("canvas"); var htmlDivElement = d2.createElement("div"); var htmlSpanElement = d2.createElement("span"); +// these are errors var htmlElement2 = d2.createElement("yo"); var htmlCanvasElement2 = d2.createElement("canvas"); var htmlDivElement2 = d2.createElement("div"); diff --git a/tests/baselines/reference/parserS7.2_A1.5_T2.js b/tests/baselines/reference/parserS7.2_A1.5_T2.js index d3b58e3d9b3..4df6144f86a 100644 --- a/tests/baselines/reference/parserS7.2_A1.5_T2.js +++ b/tests/baselines/reference/parserS7.2_A1.5_T2.js @@ -29,6 +29,7 @@ eval("\u00A0var x\u00A0= 1\u00A0"); if (x !== 1) { $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); } +//CHECK#2 var x = 1; if (x !== 1) { $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/parserS7.3_A1.1_T2.js b/tests/baselines/reference/parserS7.3_A1.1_T2.js index bb16f0e0d8e..69a7d22d01a 100644 --- a/tests/baselines/reference/parserS7.3_A1.1_T2.js +++ b/tests/baselines/reference/parserS7.3_A1.1_T2.js @@ -21,6 +21,15 @@ if (x !== 1) { //// [parserS7.3_A1.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * LINE FEED (U+000A) may occur between any two tokens + * + * @path ch07/7.3/S7.3_A1.1_T2.js + * @description Insert real LINE FEED between tokens of var x=1 + */ +//CHECK#1 var x = 1; if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/parserS7.6_A4.2_T1.js b/tests/baselines/reference/parserS7.6_A4.2_T1.js index b8395e6fa18..3ce99b68e47 100644 --- a/tests/baselines/reference/parserS7.6_A4.2_T1.js +++ b/tests/baselines/reference/parserS7.6_A4.2_T1.js @@ -146,6 +146,15 @@ if (Ё !== 1) { //// [parserS7.6_A4.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.6/S7.6_A4.2_T1.js + * @description Check RUSSIAN CAPITAL ALPHABET + */ +//CHECK#А-Я var \u0410 = 1; if (А !== 1) { $ERROR('#А'); diff --git a/tests/baselines/reference/parserS7.9_A5.7_T1.js b/tests/baselines/reference/parserS7.9_A5.7_T1.js index cb8a76bfd4b..8f600665212 100644 --- a/tests/baselines/reference/parserS7.9_A5.7_T1.js +++ b/tests/baselines/reference/parserS7.9_A5.7_T1.js @@ -21,6 +21,16 @@ y //// [parserS7.9_A5.7_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Since LineTerminator(LT) between Postfix Increment/Decrement Operator(I/DO) and operand is not allowed, two IO(just as two DO and their combination) + * between two references separated by [LT] after automatic semicolon insertion lead to syntax error + * + * @path ch07/7.9/S7.9_A5.7_T1.js + * @description Try use Variable1 \n ++ \n ++ \n Variable2 construction + * @negative + */ var x = 0, y = 0; var z = x; ++++y; diff --git a/tests/baselines/reference/plusOperatorWithAnyOtherType.js b/tests/baselines/reference/plusOperatorWithAnyOtherType.js index 394c635aedf..19ccd4799a0 100644 --- a/tests/baselines/reference/plusOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/plusOperatorWithAnyOtherType.js @@ -57,6 +57,7 @@ var ResultIsNumber19 = +(undefined + undefined); +M.n; //// [plusOperatorWithAnyOtherType.js] +// + operator on any type var ANY; var ANY1; var ANY2 = ["", ""]; @@ -82,14 +83,17 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// any other type var var ResultIsNumber1 = +ANY1; var ResultIsNumber2 = +ANY2; var ResultIsNumber3 = +A; var ResultIsNumber4 = +M; var ResultIsNumber5 = +obj; var ResultIsNumber6 = +obj1; +// any type literal var ResultIsNumber7 = +undefined; var ResultIsNumber8 = +null; +// any type expressions var ResultIsNumber9 = +ANY2[0]; var ResultIsNumber10 = +obj1.x; var ResultIsNumber11 = +obj1.y; diff --git a/tests/baselines/reference/plusOperatorWithBooleanType.js b/tests/baselines/reference/plusOperatorWithBooleanType.js index 1d5d2ae1958..57a7ba81b11 100644 --- a/tests/baselines/reference/plusOperatorWithBooleanType.js +++ b/tests/baselines/reference/plusOperatorWithBooleanType.js @@ -36,6 +36,7 @@ var ResultIsNumber7 = +A.foo(); +M.n; //// [plusOperatorWithBooleanType.js] +// + operator on boolean type var BOOLEAN; function foo() { return true; @@ -53,9 +54,12 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// boolean type var var ResultIsNumber1 = +BOOLEAN; +// boolean type literal var ResultIsNumber2 = +true; var ResultIsNumber3 = +{ x: true, y: false }; +// boolean type expressions var ResultIsNumber4 = +objA.a; var ResultIsNumber5 = +M.n; var ResultIsNumber6 = +foo(); diff --git a/tests/baselines/reference/plusOperatorWithEnumType.js b/tests/baselines/reference/plusOperatorWithEnumType.js index a2897f644bb..c66fd951d45 100644 --- a/tests/baselines/reference/plusOperatorWithEnumType.js +++ b/tests/baselines/reference/plusOperatorWithEnumType.js @@ -30,8 +30,10 @@ var ENUM1; ENUM1[ENUM1[""] = 2] = ""; })(ENUM1 || (ENUM1 = {})); ; +// enum type var var ResultIsNumber1 = +ENUM; var ResultIsNumber2 = +ENUM1; +// enum type expressions var ResultIsNumber3 = +ENUM1[0]; var ResultIsNumber4 = +(ENUM[0] + ENUM1[1]); +ENUM; diff --git a/tests/baselines/reference/plusOperatorWithNumberType.js b/tests/baselines/reference/plusOperatorWithNumberType.js index 9d89d8a94fc..9c8f59a5edd 100644 --- a/tests/baselines/reference/plusOperatorWithNumberType.js +++ b/tests/baselines/reference/plusOperatorWithNumberType.js @@ -42,6 +42,7 @@ var ResultIsNumber11 = +(NUMBER + NUMBER); +objA.a, M.n; //// [plusOperatorWithNumberType.js] +// + operator on number type var NUMBER; var NUMBER1 = [1, 2]; function foo() { @@ -60,13 +61,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// number type var var ResultIsNumber1 = +NUMBER; var ResultIsNumber2 = +NUMBER1; +// number type literal var ResultIsNumber3 = +1; var ResultIsNumber4 = +{ x: 1, y: 2 }; var ResultIsNumber5 = +{ x: 1, y: function (n) { return n; } }; +// number type expressions var ResultIsNumber6 = +objA.a; var ResultIsNumber7 = +M.n; var ResultIsNumber8 = +NUMBER1[0]; diff --git a/tests/baselines/reference/plusOperatorWithStringType.js b/tests/baselines/reference/plusOperatorWithStringType.js index d7cd25005b7..876e37ab383 100644 --- a/tests/baselines/reference/plusOperatorWithStringType.js +++ b/tests/baselines/reference/plusOperatorWithStringType.js @@ -41,6 +41,7 @@ var ResultIsNumber12 = +STRING.charAt(0); +objA.a,M.n; //// [plusOperatorWithStringType.js] +// + operator on string type var STRING; var STRING1 = ["", "abc"]; function foo() { @@ -59,13 +60,16 @@ var M; M.n; })(M || (M = {})); var objA = new A(); +// string type var var ResultIsNumber1 = +STRING; var ResultIsNumber2 = +STRING1; +// string type literal var ResultIsNumber3 = +""; var ResultIsNumber4 = +{ x: "", y: "" }; var ResultIsNumber5 = +{ x: "", y: function (s) { return s; } }; +// string type expressions var ResultIsNumber6 = +objA.a; var ResultIsNumber7 = +M.n; var ResultIsNumber8 = +STRING1[0]; diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js index f597ff7b1e7..c9e9b756c60 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js @@ -215,6 +215,7 @@ var m_public = exports.m_public; import_public.im_public_f_private = m_private.f_private; import_public.im_public_v_private = m_private.v_private; import_public.im_public_mi_private = m_private.mi_private; + // Usage of privacy error imports var privateUse_im_public_c_private = new import_public.im_public_c_private(); import_public.publicUse_im_public_c_private = new import_public.im_public_c_private(); var privateUse_im_public_e_private = 0 /* Happy */; @@ -234,6 +235,7 @@ var m_public = exports.m_public; import_public.im_public_f_public = m_public.f_public; import_public.im_public_v_public = m_public.v_public; import_public.im_public_mi_public = m_public.mi_public; + // Usage of above var privateUse_im_public_c_public = new import_public.im_public_c_public(); import_public.publicUse_im_public_c_public = new import_public.im_public_c_public(); var privateUse_im_public_e_public = 0 /* Happy */; @@ -257,6 +259,7 @@ var import_private; import_private.im_private_f_private = m_private.f_private; import_private.im_private_v_private = m_private.v_private; import_private.im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new import_private.im_private_c_private(); import_private.publicUse_im_private_c_private = new import_private.im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -276,6 +279,7 @@ var import_private; import_private.im_private_f_public = m_public.f_public; import_private.im_private_v_public = m_public.v_public; import_private.im_private_mi_public = m_public.mi_public; + // Usage of no privacy error imports var privateUse_im_private_c_public = new import_private.im_private_c_public(); import_private.publicUse_im_private_c_public = new import_private.im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js index b799a464b62..c8098b30627 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js @@ -216,6 +216,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); import_public.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -235,6 +236,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); import_public.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; @@ -258,6 +260,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); import_private.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -277,6 +280,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); import_private.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js index dac4c23eb81..c958d4a42ea 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js @@ -69,6 +69,7 @@ exports.im_public_mi_private = require("privacyTopLevelAmbientExternalModuleImpo exports.im_public_mu_private = require("privacyTopLevelAmbientExternalModuleImportWithExport_require1"); exports.im_public_mi_public = require("m"); exports.im_public_mu_public = require("m2"); +// Usage of privacy error imports var privateUse_im_public_mi_private = new exports.im_public_mi_private.c_public(); exports.publicUse_im_public_mi_private = new exports.im_public_mi_private.c_public(); var privateUse_im_public_mu_private = new exports.im_public_mu_private.c_public(); diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js index 2f7e0691317..18dd8f946b7 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js @@ -70,6 +70,7 @@ define(["require", "exports"], function (require, exports) { }); //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] define(["require", "exports", "m", "m2", "privacyTopLevelAmbientExternalModuleImportWithoutExport_require"], function (require, exports, im_private_mi_private, im_private_mu_private, im_private_mi_public) { + // Usage of privacy error imports var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); exports.publicUse_im_private_mi_private = new im_private_mi_private.c_private(); var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js index 5ef31d28d6e..a1709e3ca7b 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js @@ -162,6 +162,7 @@ define(["require", "exports"], function (require, exports) { exports.im_public_f_private = m_private.f_private; exports.im_public_v_private = m_private.v_private; exports.im_public_mi_private = m_private.mi_private; + // Usage of privacy error imports var privateUse_im_public_c_private = new exports.im_public_c_private(); exports.publicUse_im_public_c_private = new exports.im_public_c_private(); var privateUse_im_public_e_private = 0 /* Happy */; @@ -181,6 +182,7 @@ define(["require", "exports"], function (require, exports) { exports.im_public_f_public = m_public.f_public; exports.im_public_v_public = m_public.v_public; exports.im_public_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_public_c_public = new exports.im_public_c_public(); exports.publicUse_im_public_c_public = new exports.im_public_c_public(); var privateUse_im_public_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js index bce0ad5c8f6..b3db6315f44 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js @@ -163,6 +163,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_private = m_private.f_private; var im_private_v_private = m_private.v_private; var im_private_mi_private = m_private.mi_private; + // Usage of above decls var privateUse_im_private_c_private = new im_private_c_private(); exports.publicUse_im_private_c_private = new im_private_c_private(); var privateUse_im_private_e_private = 0 /* Happy */; @@ -182,6 +183,7 @@ define(["require", "exports"], function (require, exports) { var im_private_f_public = m_public.f_public; var im_private_v_public = m_public.v_public; var im_private_mi_public = m_public.mi_public; + // Usage of above decls var privateUse_im_private_c_public = new im_private_c_public(); exports.publicUse_im_private_c_public = new im_private_c_public(); var privateUse_im_private_e_public = 0 /* Happy */; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 5e77bce62b3..ea13c12204d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index 16fa0fe7879..7d8b76cac05 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 0a2a9b139aa..3153725651c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index 16fa0fe7879..7d8b76cac05 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index f1a9b7bc16a..c90b960a80e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 16fa0fe7879..7d8b76cac05 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 6f0bcf13bd0..30ffc64617e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index aa651dac74c..c664292eca3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 16fa0fe7879..7d8b76cac05 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index b758f144d5c..7ef36232b8d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index cdef85d419d..6f1ddfd7dd7 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 5ee16b0dada..ef107bb75b8 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index b758f144d5c..7ef36232b8d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index cdef85d419d..6f1ddfd7dd7 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index fa0ec9a7620..2e21de11e01 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 76db561018d..fc53d59d7cb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index f5684dd19d4..d9a8564525c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index afeb358b21c..7c4f8ffc229 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 76db561018d..fc53d59d7cb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index f5684dd19d4..d9a8564525c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 5a96a075f10..9e1907a3f19 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index 11c1042a751..02cad9b9ab3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index 4a1c9d94212..b592e001a98 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index 11c1042a751..02cad9b9ab3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map index 4a1c9d94212..b592e001a98 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 382d77cf0e5..3b087cd34db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 4a1c9d94212..b592e001a98 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 382d77cf0e5..3b087cd34db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index d06b5ac3fdd..4ea192ec827 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 4a1c9d94212..b592e001a98 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js index f87eb9833a6..cbcbe046961 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index b48597f838f..1812f2fecd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 2e1fe00298a..6c42e7229b3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js index f87eb9833a6..cbcbe046961 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map index b48597f838f..1812f2fecd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 2e1fe00298a..6c42e7229b3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 3a048c5d034..9b5860b612b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map index d2761693aab..b0471f2c948 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 3a048c5d034..9b5860b612b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map index d2761693aab..b0471f2c948 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 840efe46cc8..47fa7e75199 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d2761693aab..b0471f2c948 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 840efe46cc8..47fa7e75199 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 328ca75fc6f..477ab9b9bd5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index d2761693aab..b0471f2c948 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js index b6010105a09..54a21de3149 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 908a7800f14..4217335db62 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index 455f997059b..92885552f3f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js index b6010105a09..54a21de3149 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map index 908a7800f14..4217335db62 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index 455f997059b..92885552f3f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 39cacbeef20..949c8b01349 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index d2761693aab..b1ba0007b51 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 39cacbeef20..949c8b01349 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map index d2761693aab..b1ba0007b51 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 4b27c9d09fc..44c413210dc 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d2761693aab..b1ba0007b51 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 4b27c9d09fc..44c413210dc 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../test.ts emittedFile:outdir/simple/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index fd2a763910e..7661081c85c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index d2761693aab..b1ba0007b51 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js index 395927c02b0..561341ee534 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index eeb60352d26..9593afdf577 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index ccea1b28f18..6cdd1b8fc9e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js index 395927c02b0..561341ee534 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map index eeb60352d26..9593afdf577 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index ccea1b28f18..6cdd1b8fc9e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index 8a041f9d216..0c408c275ea 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js index 39ea4830920..15ea98ef7ed 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 320edbdbdb9..828e5f06c03 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index fb786efd56a..3f303cae59a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js index 39ea4830920..15ea98ef7ed 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 320edbdbdb9..828e5f06c03 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 91bdef4e696..9465eaca080 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index ca051a06fbf..ce180d55323 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 320edbdbdb9..828e5f06c03 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index bd5c801ef6d..1494a71e0c2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index ca051a06fbf..ce180d55323 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 320edbdbdb9..828e5f06c03 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 3112a063a43..c4c79e0454b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 03f724cdf70..111caa88ab6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 67acb15edbc..33a1a16a5c5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index 3112a063a43..c4c79e0454b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 03f724cdf70..111caa88ab6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index afeacd57cf1..100d1da6afd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index f7b816443ca..c0138423cae 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 480445b6070..5bfeb8c37b1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 1b111184a46..090f794e06a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index f7b816443ca..c0138423cae 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 480445b6070..5bfeb8c37b1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 303e1b1ebd2..e6e8d34e4cb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index 8b01e21ef01..29cc1bff12e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js index 1c2cc13934e..3a5f36cd163 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map index 34a1d5972e2..0893e2d067d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index 8b01e21ef01..29cc1bff12e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js index 1c2cc13934e..3a5f36cd163 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map index 34a1d5972e2..0893e2d067d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index b4dbc8d9513..20db52dd8e8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 05506d3b654..4823d597b6b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 34a1d5972e2..0893e2d067d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index b4dbc8d9513..20db52dd8e8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 05506d3b654..4823d597b6b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 34a1d5972e2..0893e2d067d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js index cf6a1ab6b31..8fafee438e6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index 678b4b07a77..3764898a5cf 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_multifolder/ref/m1.ts","../outputdir_multifolder_ref/m2.ts","../outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_multifolder/ref/m1.ts","../outputdir_multifolder_ref/m2.ts","../outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 28b577af41f..0346140ef3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js index cf6a1ab6b31..8fafee438e6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map index 678b4b07a77..3764898a5cf 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_multifolder/ref/m1.ts","../outputdir_multifolder_ref/m2.ts","../outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_multifolder/ref/m1.ts","../outputdir_multifolder_ref/m2.ts","../outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 28b577af41f..0346140ef3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt index 70e9eeb8650..144c281141e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js index 39ea4830920..3eb5d7bae1c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map index 04c9323ca4e..b280e83c684 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt index 70e9eeb8650..144c281141e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js index 39ea4830920..3eb5d7bae1c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map index 04c9323ca4e..b280e83c684 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 0e451ad019f..4166fd0726b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index ca051a06fbf..ee8fc06b62f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 04c9323ca4e..b280e83c684 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 0e451ad019f..4166fd0726b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index ca051a06fbf..ee8fc06b62f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 04c9323ca4e..b280e83c684 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js index 3112a063a43..9d6f9d2bb0d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 332f464c1a6..9f094e0e243 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 755acd78bfe..08069776096 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js index 3112a063a43..9d6f9d2bb0d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map index 332f464c1a6..9f094e0e243 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 755acd78bfe..08069776096 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt index 63339245966..c95281b0117 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js index 39ea4830920..cca8db1b548 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map index fc6f3410d0f..3518a66e606 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt index 63339245966..c95281b0117 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js index 39ea4830920..cca8db1b548 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map index fc6f3410d0f..3518a66e606 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index c7ff5d90c31..7a17ef73ca4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index ca051a06fbf..3325bc2ccfb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index fc6f3410d0f..3518a66e606 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index c7ff5d90c31..7a17ef73ca4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index ca051a06fbf..3325bc2ccfb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index fc6f3410d0f..3518a66e606 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js index 3112a063a43..a85935632dd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index 9c66bbc80e8..70b064b97a9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index 4543f196ea1..95712b2c3ef 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js index 3112a063a43..a85935632dd 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map index 9c66bbc80e8..70b064b97a9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index 4543f196ea1..95712b2c3ef 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:../outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt index 8d774a44e59..dbacb509299 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map index 366c350fa3d..ec46d44dd36 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt index b82d9a777ed..7f8e5e51eef 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map index 366c350fa3d..ec46d44dd36 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 992984b18f5..b055e0d85ac 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 366c350fa3d..ec46d44dd36 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index c94d152058d..101a39cb149 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 366c350fa3d..ec46d44dd36 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index be23341791d..b8b1e81a1f7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index f3eb57d201e..8dbf7526563 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index be23341791d..b8b1e81a1f7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 92854c1cd37..1805bde6293 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index cb8d37b3091..6765e0e0fa6 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index c92c4ed0ec2..e5aca4bd246 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index cb8d37b3091..6765e0e0fa6 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index c41a6b6ebf9..ea467254de4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt index 4e2ac5b01d6..85447a672f9 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map index 69418ac38a0..cc7aa790c7b 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt index 4e2ac5b01d6..85447a672f9 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map index 69418ac38a0..cc7aa790c7b 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 38886b8b052..bf5416e3ae3 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 69418ac38a0..cc7aa790c7b 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 38886b8b052..bf5416e3ae3 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: file:///tests/cases/projects/outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 69418ac38a0..cc7aa790c7b 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index 13734ab1b25..d3400838027 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 124b8873a13..292e5cf400f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js index 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index 13734ab1b25..d3400838027 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 124b8873a13..292e5cf400f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt index bdf2944dba6..0779281197a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map index 06c5dabf1c6..e10afd12d5f 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt index bdf2944dba6..0779281197a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map index 06c5dabf1c6..e10afd12d5f 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 3db990f7803..68c1cd3bce9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 06c5dabf1c6..e10afd12d5f 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 3db990f7803..68c1cd3bce9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_simple/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 06c5dabf1c6..e10afd12d5f 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index bb6681c4801..70062ed1d78 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt index 70d905e86c5..c06e1433af5 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js index 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index bb6681c4801..70062ed1d78 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt index 70d905e86c5..c06e1433af5 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt index 1cd70387dcd..af274497908 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map index b17258aa796..2cbc935e3ca 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt index 1cd70387dcd..af274497908 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map index b17258aa796..2cbc935e3ca 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index fa7118aa584..ed6df05a4da 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index b17258aa796..2cbc935e3ca 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index fa7118aa584..ed6df05a4da 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: file:///tests/cases/projects/outputdir_subfolder/test.ts emittedFile:outdir/simple/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index b17258aa796..2cbc935e3ca 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index d3a89b9dc65..a83d7767a58 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt index d3a189430ab..e7181011976 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js index 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index d3a89b9dc65..a83d7767a58 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt index d3a189430ab..e7181011976 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index fadb9438e7c..bbfd41971ea 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 82f4836ae57..cb5acf04cad 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 8015060953e..5c7fbf55980 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 640f81a841e..9358870a688 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..d346b13ac18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 4a2c2ebb408..af09cb956f6 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 0722496aa12..7a63f82b063 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index 7a75cd20809..af0071d7e46 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 4a2c2ebb408..af09cb956f6 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 88f3e8903fb..edff71433ac 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 4bc829d46fa..2b043394866 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index af49f041f1b..1a6dfcfc5f3 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 3fb10c4abce..2ebe138ffda 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 4bc829d46fa..2b043394866 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 310d6dfaa8e..83af964a3ef 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 6fee35ee39f..470b4280389 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 6fee35ee39f..470b4280389 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 3d87f0b8785..4cfbf25edb5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 3d87f0b8785..4cfbf25edb5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index a2c419cfeb7..ea17b21a537 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index d86a5b966a4..ece3a005e75 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 2dd1f89463c..5884efb5062 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js index 8da3a55d9d8..b5641a2b2bd 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index d86a5b966a4..ece3a005e75 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 2dd1f89463c..5884efb5062 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt index 56c6277d3a2..0d6c41e9711 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt index 56c6277d3a2..0d6c41e9711 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 749d68f6d0a..77f1611c24e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 749d68f6d0a..77f1611c24e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..168ab13ecd8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index 86549d3cdf3..8610dc814fc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index f27f617d8a3..93973163cd7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js index 7a75cd20809..869f4f5971a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index 86549d3cdf3..8610dc814fc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index f27f617d8a3..93973163cd7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt index 9c71223befb..f437ff38afa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt index 9c71223befb..f437ff38afa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index d3957b2819a..5b1bcfef3e7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index d3957b2819a..5b1bcfef3e7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..78b49c056c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index db639624d79..677ccf1596d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index c3a5a3791db..f9478f2e3bc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js index 7a75cd20809..632070dbd64 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index db639624d79..677ccf1596d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index c3a5a3791db..f9478f2e3bc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index ced5641081b..57200235601 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index c1e610b251e..ad3b4896eec 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index ced5641081b..693aed69734 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js index 3b69cd525ae..b6fc6ea83ff 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js index 3b69cd525ae..b6fc6ea83ff 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index ced5641081b..6b3e0bddbbb 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js index c1e610b251e..725379f28cc 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js index c1e610b251e..725379f28cc 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index ced5641081b..38f1692117a 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js index c1e610b251e..8b15a01fa01 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js index c1e610b251e..8b15a01fa01 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 0a485a94977..6777ff94467 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index 9c3e31a1004..59114b811dc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 768c77b27f8..9250746237b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index 9c3e31a1004..59114b811dc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 9c3e31a1004..59114b811dc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index e2eb6dd47dc..ef941ec8527 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 9c3e31a1004..59114b811dc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 349524dce45..8a79efe75e9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 198353a83a7..f21f73c29bb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 53ad6a00f3d..b1c5507682c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 198353a83a7..f21f73c29bb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 9e35d35593f..6eea2973858 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index a46c6a164db..7f35721dda8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index e6454c5c867..39e33fa9c4f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index a46c6a164db..7f35721dda8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index baaf24f3f05..7943340db97 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index bf7a27f7d34..a932b4ba35e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index d6c76d041af..39be85e5c61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index bf7a27f7d34..a932b4ba35e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map index d6c76d041af..39be85e5c61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index d6c76d041af..39be85e5c61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 06c159cb70b..7e47593c4b7 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index d6c76d041af..39be85e5c61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 06c159cb70b..7e47593c4b7 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index c6cc8a00c83..47c9541e0eb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 364db7cb2e0..011daa6708b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map index c6cc8a00c83..47c9541e0eb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 364db7cb2e0..011daa6708b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 1c189d89138..40f672bb0f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map index 85db2988a68..c50d8e4859f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 1c189d89138..40f672bb0f2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map index 85db2988a68..c50d8e4859f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 85db2988a68..c50d8e4859f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3b67392adac..4a50fc2c799 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 85db2988a68..c50d8e4859f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3b67392adac..4a50fc2c799 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 7be2c0252a1..e60662f68a5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index 43f969ce6b0..28833a21cbc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map index 7be2c0252a1..e60662f68a5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index 43f969ce6b0..28833a21cbc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 98e3f08068c..ee5822937fb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index f9d4bfb3fff..09ec82b9dc6 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 98e3f08068c..ee5822937fb 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map index f9d4bfb3fff..09ec82b9dc6 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index f9d4bfb3fff..09ec82b9dc6 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index ac65eb2053d..de87b327bb2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index f9d4bfb3fff..09ec82b9dc6 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index ac65eb2053d..de87b327bb2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index 935cf031db8..489c554916e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index 6c3de002a42..ade7f125bba 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map index 935cf031db8..489c554916e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index 6c3de002a42..ade7f125bba 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index 9722f1f1bd5..280d8605873 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 2086277e2ff..e21190f8e2e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index 7970c4c25ce..7f4e9e1ddbe 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 2086277e2ff..e21190f8e2e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 2086277e2ff..e21190f8e2e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index f766728319d..ee48016ceb9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 2086277e2ff..e21190f8e2e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index ae8f031a373..95cca9bf57d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 9e3baf2e49d..b86daf390ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 1418aef8ce4..458add435ad 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 9e3baf2e49d..b86daf390ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index cf91d197a47..9e6b357fb24 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index b4f8caea081..e9865e31b38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index c5438216f64..e881c0b785d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index b4f8caea081..e9865e31b38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 52848595e94..6312eb97268 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt index d8a65f04e88..e3ee3f75771 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map index 294e92449a8..203c42359bd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt index d8a65f04e88..e3ee3f75771 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map index 294e92449a8..203c42359bd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 294e92449a8..203c42359bd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 86e5ca70fe1..c89d3dadb38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 294e92449a8..203c42359bd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 86e5ca70fe1..c89d3dadb38 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index 3cabd208b3f..4b6e3515172 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 165c28d347c..db35a4d65e9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map index 3cabd208b3f..4b6e3515172 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 165c28d347c..db35a4d65e9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt index e5bcbb33d6c..0019838beaf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map index d503eef097b..a3a4dda9ee2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt index e5bcbb33d6c..0019838beaf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map index d503eef097b..a3a4dda9ee2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d503eef097b..a3a4dda9ee2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 213cbc2cdd6..8e3a977cca1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index d503eef097b..a3a4dda9ee2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 213cbc2cdd6..8e3a977cca1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 46c6976ba9b..ca707d32461 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 643aab720d2..0450303b15f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map index 46c6976ba9b..ca707d32461 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 643aab720d2..0450303b15f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt index f83a167d8c0..914b521f34b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map index d503eef097b..17240f26218 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt index f83a167d8c0..914b521f34b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map index d503eef097b..17240f26218 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d503eef097b..17240f26218 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index a4ffa704768..f7eb83a20d1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index d503eef097b..17240f26218 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index a4ffa704768..f7eb83a20d1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index ffb6245b3a6..4e19de36fe8 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index fdfa1fa494d..3f529a732cd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map index ffb6245b3a6..4e19de36fe8 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index fdfa1fa494d..3f529a732cd 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt index ca24c56dc4e..8e10970ffce 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map index a174f137069..004deef64ee 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt index 42f05603bb9..7a872ddd504 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map index a174f137069..004deef64ee 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 4a1c9d94212..b3ee1024446 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 7d2080d78d6..77f7dd030d7 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 4a1c9d94212..b3ee1024446 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index b2a63fadf4d..0ae77c78e64 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index cdef85d419d..6f1ddfd7dd7 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt index 1ec1233c247..f798f6bd54d 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index cdef85d419d..6f1ddfd7dd7 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt index b772fe34981..a6bfcf784e0 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index f5684dd19d4..d9a8564525c 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index e12b5f5f478..a05ce4d647b 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index f5684dd19d4..d9a8564525c 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 67b48947f4d..adb046a3bcc 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:../ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt index 3c42146ae7b..8606d36acd4 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map index a174f137069..276a8b2a720 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt index 3c42146ae7b..8606d36acd4 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map index a174f137069..276a8b2a720 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 60147d9ff7e..521dbe5e313 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt index 19f746a5951..11ece946281 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 60147d9ff7e..521dbe5e313 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt index 19f746a5951..11ece946281 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: ../../../test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:../../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:../../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:../../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:../../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:../../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map index b48597f838f..1812f2fecd5 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt index 3e43e849504..d8299995443 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map index b48597f838f..1812f2fecd5 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt index 3e43e849504..d8299995443 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt index 1994743df49..7337d98d30b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map index c6b6358f313..66a78eca4fd 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt index 1994743df49..7337d98d30b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map index c6b6358f313..66a78eca4fd 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 22e4e6ca87b..5a197e3071b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt index 7dbdb509c7c..4b35efc9982 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 22e4e6ca87b..5a197e3071b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt index 7dbdb509c7c..4b35efc9982 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map index 908a7800f14..4217335db62 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt index d10c6fdd372..5ace4e9d141 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map index 908a7800f14..4217335db62 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt index d10c6fdd372..5ace4e9d141 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt index b58bf1725ff..a8cf87e7c6a 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map index c6b6358f313..3c65fcf31b8 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt index b58bf1725ff..a8cf87e7c6a 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map index c6b6358f313..3c65fcf31b8 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 22e4e6ca87b..071f3dc5770 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt index c8b92ce3df1..c8f714c3481 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 22e4e6ca87b..071f3dc5770 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt index c8b92ce3df1..c8f714c3481 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: ../../test.ts emittedFile:outdir/simple/test.js sourceFile:../../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:../../test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:../../test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:../../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:../../test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map index eeb60352d26..9593afdf577 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt index 6a5d7c68b5f..5c3d682e6f9 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map index eeb60352d26..9593afdf577 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt index 6a5d7c68b5f..5c3d682e6f9 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:../ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:../ref/m1.ts emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:../test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:../test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:../test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:../test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 0c5b599dc40..bdc09350720 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 7f8fa6ce5f2..22f075a2c26 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 2bcd95ed430..8ea7277b999 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -363,28 +363,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -395,9 +414,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -406,9 +425,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -418,16 +437,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -441,10 +460,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -465,14 +484,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -483,9 +502,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -499,11 +518,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -512,7 +531,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..8b8abfc1aed 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 9e57d9a732f..c084feb0fd0 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index aa1e7b139b1..406569f1a8f 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -362,28 +362,47 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 34) Source(2, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -394,9 +413,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -405,9 +424,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -417,16 +436,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -440,10 +459,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -464,14 +483,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -482,9 +501,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -498,11 +517,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -511,7 +530,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 4a2c2ebb408..af09cb956f6 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 068a018f931..c0b44f4c066 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..5af28cf8560 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 4a2c2ebb408..af09cb956f6 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 2707a1d81dd..c11097c512b 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 4bc829d46fa..2b043394866 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index fde3e4ce94e..3b975d27540 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -346,7 +346,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -357,28 +357,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -389,9 +408,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -400,9 +419,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -412,16 +431,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -435,10 +454,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -459,14 +478,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -477,9 +496,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -493,11 +512,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -506,7 +525,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index d582d47f405..1750a5975ae 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -8,6 +8,8 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 4bc829d46fa..2b043394866 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index b4151e5e7d4..b7ac7d33ad9 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -345,7 +345,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -356,28 +356,47 @@ sourceFile:ref/m1.ts emittedFile:bin/outAndOutDirFile.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(3, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(3, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(3, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(3, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 34) Source(2, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 7) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 10) Source(3, 10) + SourceIndex(1) +4 >Emitted(13, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(13, 13) Source(3, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -388,9 +407,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(4, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(4, 9) + SourceIndex(1) +1->Emitted(14, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 5) Source(4, 7) + SourceIndex(1) +3 >Emitted(14, 7) Source(4, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -399,9 +418,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(4, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(4, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(4, 9) + SourceIndex(1) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (c1) +2 >Emitted(15, 14) Source(4, 7) + SourceIndex(1) name (c1) +3 >Emitted(15, 16) Source(4, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -411,16 +430,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(16, 5) Source(6, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(6, 2) + SourceIndex(1) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -434,10 +453,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(6, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(6, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(4, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) name (c1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) name (c1) +3 >Emitted(18, 2) Source(4, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -458,14 +477,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(8, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(8, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(8, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(8, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(8, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(8, 26) + SourceIndex(1) +1->Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(8, 5) + SourceIndex(1) +3 >Emitted(19, 14) Source(8, 14) + SourceIndex(1) +4 >Emitted(19, 17) Source(8, 17) + SourceIndex(1) +5 >Emitted(19, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(19, 23) Source(8, 23) + SourceIndex(1) +7 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) +8 >Emitted(19, 26) Source(8, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -476,9 +495,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(9, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(9, 12) + SourceIndex(1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 10) Source(9, 10) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -492,11 +511,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(10, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(10, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(10, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(10, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(10, 22) + SourceIndex(1) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(1) name (f1) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(1) name (f1) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(1) name (f1) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(1) name (f1) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -505,7 +524,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(11, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(11, 2) + SourceIndex(1) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(1) name (f1) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt index ef120717208..336519863e2 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt index ef120717208..336519863e2 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index a055ff01a70..5698aa393c1 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 335d79c01c6..87d3f006993 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -1,3 +1,5 @@ +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 3809ffe7b9c..4c01d4f1055 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAEA,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index a055ff01a70..5698aa393c1 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -328,28 +328,47 @@ sources: outputdir_multifolder/test.ts emittedFile:outdir/simple/outputdir_multifolder/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(3, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(3, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(3, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(3, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(3, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 59) Source(2, 59) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -360,9 +379,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(4, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(4, 9) + SourceIndex(0) +1->Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(4, 7) + SourceIndex(0) +3 >Emitted(4, 7) Source(4, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -371,9 +390,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(4, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(4, 9) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +2 >Emitted(5, 14) Source(4, 7) + SourceIndex(0) name (c1) +3 >Emitted(5, 16) Source(4, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -383,16 +402,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -406,10 +425,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(6, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -430,14 +449,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(8, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(8, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(8, 26) + SourceIndex(0) +1->Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +3 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +4 >Emitted(9, 17) Source(8, 17) + SourceIndex(0) +5 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(9, 23) Source(8, 23) + SourceIndex(0) +7 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) +8 >Emitted(9, 26) Source(8, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -448,9 +467,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -464,11 +483,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -477,7 +496,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index d86a5b966a4..ece3a005e75 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 87bf27ca379..522133b61a4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js index e4439f13d30..e6b143a110a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -18,6 +18,8 @@ var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; } +/// +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index d86a5b966a4..ece3a005e75 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXC,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACND,AAFA,iCAAiC;AACjC,0DAA0D;IACtD,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 87bf27ca379..522133b61a4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -305,7 +305,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -316,28 +316,47 @@ sourceFile:outputdir_multifolder_ref/m2.ts emittedFile:bin/test.js sourceFile:outputdir_multifolder/test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->/// >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(21, 7) Source(3, 7) + SourceIndex(2) -4 >Emitted(21, 10) Source(3, 10) + SourceIndex(2) -5 >Emitted(21, 12) Source(3, 12) + SourceIndex(2) -6 >Emitted(21, 13) Source(3, 13) + SourceIndex(2) +2 >Emitted(21, 1) Source(1, 1) + SourceIndex(2) +3 >Emitted(21, 34) Source(1, 34) + SourceIndex(2) +--- +>>>/// +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >/// +1->Emitted(22, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(22, 59) Source(2, 59) + SourceIndex(2) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(23, 7) Source(3, 7) + SourceIndex(2) +3 >Emitted(23, 10) Source(3, 10) + SourceIndex(2) +4 >Emitted(23, 12) Source(3, 12) + SourceIndex(2) +5 >Emitted(23, 13) Source(3, 13) + SourceIndex(2) --- >>>var c1 = (function () { 1-> @@ -348,9 +367,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >class 3 > c1 -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 5) Source(4, 7) + SourceIndex(2) -3 >Emitted(22, 7) Source(4, 9) + SourceIndex(2) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(4, 7) + SourceIndex(2) +3 >Emitted(24, 7) Source(4, 9) + SourceIndex(2) --- >>> function c1() { 1->^^^^ @@ -359,9 +378,9 @@ sourceFile:outputdir_multifolder/test.ts 1-> 2 > class 3 > c1 -1->Emitted(23, 5) Source(4, 1) + SourceIndex(2) name (c1) -2 >Emitted(23, 14) Source(4, 7) + SourceIndex(2) name (c1) -3 >Emitted(23, 16) Source(4, 9) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +2 >Emitted(25, 14) Source(4, 7) + SourceIndex(2) name (c1) +3 >Emitted(25, 16) Source(4, 9) + SourceIndex(2) name (c1) --- >>> } 1 >^^^^ @@ -371,16 +390,16 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1 >Emitted(24, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(24, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1 >Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(25, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) --- >>>})(); 1 > @@ -394,10 +413,10 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) name (c1) -3 >Emitted(26, 2) Source(4, 1) + SourceIndex(2) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) +4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- >>>var instance1 = new c1(); 1-> @@ -418,14 +437,14 @@ sourceFile:outputdir_multifolder/test.ts 6 > c1 7 > () 8 > ; -1->Emitted(27, 1) Source(8, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(8, 5) + SourceIndex(2) -3 >Emitted(27, 14) Source(8, 14) + SourceIndex(2) -4 >Emitted(27, 17) Source(8, 17) + SourceIndex(2) -5 >Emitted(27, 21) Source(8, 21) + SourceIndex(2) -6 >Emitted(27, 23) Source(8, 23) + SourceIndex(2) -7 >Emitted(27, 25) Source(8, 25) + SourceIndex(2) -8 >Emitted(27, 26) Source(8, 26) + SourceIndex(2) +1->Emitted(29, 1) Source(8, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(8, 5) + SourceIndex(2) +3 >Emitted(29, 14) Source(8, 14) + SourceIndex(2) +4 >Emitted(29, 17) Source(8, 17) + SourceIndex(2) +5 >Emitted(29, 21) Source(8, 21) + SourceIndex(2) +6 >Emitted(29, 23) Source(8, 23) + SourceIndex(2) +7 >Emitted(29, 25) Source(8, 25) + SourceIndex(2) +8 >Emitted(29, 26) Source(8, 26) + SourceIndex(2) --- >>>function f1() { 1 > @@ -436,9 +455,9 @@ sourceFile:outputdir_multifolder/test.ts > 2 >function 3 > f1 -1 >Emitted(28, 1) Source(9, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(9, 10) + SourceIndex(2) -3 >Emitted(28, 12) Source(9, 12) + SourceIndex(2) +1 >Emitted(30, 1) Source(9, 1) + SourceIndex(2) +2 >Emitted(30, 10) Source(9, 10) + SourceIndex(2) +3 >Emitted(30, 12) Source(9, 12) + SourceIndex(2) --- >>> return instance1; 1->^^^^ @@ -452,11 +471,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(29, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(29, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(29, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(29, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(29, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) --- >>>} 1 > @@ -465,7 +484,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(30, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(30, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt index 67378d3b3b0..0c278b8a07a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt index 67378d3b3b0..0c278b8a07a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 8840f088232..376e7fbb742 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..218d8fcf05d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 12a2e00edee..228d40908fb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 8840f088232..376e7fbb742 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index 86549d3cdf3..8610dc814fc 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 2e298e0f200..013a0298c46 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..10bcbf92a21 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index 86549d3cdf3..8610dc814fc 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,6BAA6B;IACzB,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 2e298e0f200..013a0298c46 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 30) Source(1, 30) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt index b694a733e2c..d66cc473768 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt index b694a733e2c..d66cc473768 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index a47ea8bf3a8..0d8c0c34ca8 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..bdb90297aea 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -1,3 +1,4 @@ +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 12a2e00edee..129e7217134 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AACA,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index a47ea8bf3a8..0d8c0c34ca8 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -168,27 +168,36 @@ sources: test.ts emittedFile:outdir/simple/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1 > -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 >/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0) -3 >Emitted(1, 7) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 10) Source(2, 10) + SourceIndex(0) -5 >Emitted(1, 12) Source(2, 12) + SourceIndex(0) -6 >Emitted(1, 13) Source(2, 13) + SourceIndex(0) +2 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) --- >>>var c1 = (function () { 1-> @@ -199,9 +208,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(2, 7) Source(3, 9) + SourceIndex(0) +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 7) Source(3, 9) + SourceIndex(0) --- >>> function c1() { 1->^^^^ @@ -210,9 +219,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c1) -2 >Emitted(3, 14) Source(3, 7) + SourceIndex(0) name (c1) -3 >Emitted(3, 16) Source(3, 9) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +2 >Emitted(4, 14) Source(3, 7) + SourceIndex(0) name (c1) +3 >Emitted(4, 16) Source(3, 9) + SourceIndex(0) name (c1) --- >>> } 1 >^^^^ @@ -222,16 +231,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(4, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1 >Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) --- >>>})(); 1 > @@ -245,10 +254,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (c1) -3 >Emitted(6, 2) Source(3, 1) + SourceIndex(0) -4 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) +4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- >>>var instance1 = new c1(); 1-> @@ -269,14 +278,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(7, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) -3 >Emitted(7, 14) Source(7, 14) + SourceIndex(0) -4 >Emitted(7, 17) Source(7, 17) + SourceIndex(0) -5 >Emitted(7, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(7, 23) Source(7, 23) + SourceIndex(0) -7 >Emitted(7, 25) Source(7, 25) + SourceIndex(0) -8 >Emitted(7, 26) Source(7, 26) + SourceIndex(0) +1->Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 5) Source(7, 5) + SourceIndex(0) +3 >Emitted(8, 14) Source(7, 14) + SourceIndex(0) +4 >Emitted(8, 17) Source(7, 17) + SourceIndex(0) +5 >Emitted(8, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(8, 23) Source(7, 23) + SourceIndex(0) +7 >Emitted(8, 25) Source(7, 25) + SourceIndex(0) +8 >Emitted(8, 26) Source(7, 26) + SourceIndex(0) --- >>>function f1() { 1 > @@ -287,9 +296,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(8, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +1 >Emitted(9, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(9, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) --- >>> return instance1; 1->^^^^ @@ -303,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) --- >>>} 1 > @@ -316,7 +325,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index db639624d79..677ccf1596d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index 066553daeb1..627fd896eb6 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js index adbcb1ed5e6..c82993389bf 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -8,6 +8,7 @@ var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; } +/// var a1 = 10; var c1 = (function () { function c1() { diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index db639624d79..677ccf1596d 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf,IAAM,KAAK;IAAXA,SAAMA,KAAKA;IAEXC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B,SAAS,KAAK;IACVE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACPD,AADA,iCAAiC;IAC7B,EAAE,GAAG,EAAE,CAAC;AACZ,IAAM,EAAE;IAARC,SAAMA,EAAEA;IAERC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB,SAAS,EAAE;IACPE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index 066553daeb1..627fd896eb6 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -151,7 +151,7 @@ sourceFile:ref/m1.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -162,27 +162,36 @@ sourceFile:ref/m1.ts emittedFile:bin/test.js sourceFile:test.ts ------------------------------------------------------------------- ->>>var a1 = 10; +>>>/// 1-> -2 >^^^^ -3 > ^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> +2 > +3 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->/// > -2 >var -3 > a1 -4 > = -5 > 10 -6 > ; +2 > +3 >/// 1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(2, 5) + SourceIndex(1) -3 >Emitted(11, 7) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 10) Source(2, 10) + SourceIndex(1) -5 >Emitted(11, 12) Source(2, 12) + SourceIndex(1) -6 >Emitted(11, 13) Source(2, 13) + SourceIndex(1) +2 >Emitted(11, 1) Source(1, 1) + SourceIndex(1) +3 >Emitted(11, 34) Source(1, 34) + SourceIndex(1) +--- +>>>var a1 = 10; +1 >^^^^ +2 > ^^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1 > + >var +2 > a1 +3 > = +4 > 10 +5 > ; +1 >Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 7) Source(2, 7) + SourceIndex(1) +3 >Emitted(12, 10) Source(2, 10) + SourceIndex(1) +4 >Emitted(12, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(12, 13) Source(2, 13) + SourceIndex(1) --- >>>var c1 = (function () { 1-> @@ -193,9 +202,9 @@ sourceFile:test.ts > 2 >class 3 > c1 -1->Emitted(12, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(12, 5) Source(3, 7) + SourceIndex(1) -3 >Emitted(12, 7) Source(3, 9) + SourceIndex(1) +1->Emitted(13, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(13, 5) Source(3, 7) + SourceIndex(1) +3 >Emitted(13, 7) Source(3, 9) + SourceIndex(1) --- >>> function c1() { 1->^^^^ @@ -204,9 +213,9 @@ sourceFile:test.ts 1-> 2 > class 3 > c1 -1->Emitted(13, 5) Source(3, 1) + SourceIndex(1) name (c1) -2 >Emitted(13, 14) Source(3, 7) + SourceIndex(1) name (c1) -3 >Emitted(13, 16) Source(3, 9) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +2 >Emitted(14, 14) Source(3, 7) + SourceIndex(1) name (c1) +3 >Emitted(14, 16) Source(3, 9) + SourceIndex(1) name (c1) --- >>> } 1 >^^^^ @@ -216,16 +225,16 @@ sourceFile:test.ts > public p1: number; > 2 > } -1 >Emitted(14, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(14, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1 >Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(15, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) --- >>>})(); 1 > @@ -239,10 +248,10 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) name (c1) -3 >Emitted(16, 2) Source(3, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>>var instance1 = new c1(); 1-> @@ -263,14 +272,14 @@ sourceFile:test.ts 6 > c1 7 > () 8 > ; -1->Emitted(17, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(7, 5) + SourceIndex(1) -3 >Emitted(17, 14) Source(7, 14) + SourceIndex(1) -4 >Emitted(17, 17) Source(7, 17) + SourceIndex(1) -5 >Emitted(17, 21) Source(7, 21) + SourceIndex(1) -6 >Emitted(17, 23) Source(7, 23) + SourceIndex(1) -7 >Emitted(17, 25) Source(7, 25) + SourceIndex(1) -8 >Emitted(17, 26) Source(7, 26) + SourceIndex(1) +1->Emitted(18, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(7, 5) + SourceIndex(1) +3 >Emitted(18, 14) Source(7, 14) + SourceIndex(1) +4 >Emitted(18, 17) Source(7, 17) + SourceIndex(1) +5 >Emitted(18, 21) Source(7, 21) + SourceIndex(1) +6 >Emitted(18, 23) Source(7, 23) + SourceIndex(1) +7 >Emitted(18, 25) Source(7, 25) + SourceIndex(1) +8 >Emitted(18, 26) Source(7, 26) + SourceIndex(1) --- >>>function f1() { 1 > @@ -281,9 +290,9 @@ sourceFile:test.ts > 2 >function 3 > f1 -1 >Emitted(18, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 10) Source(8, 10) + SourceIndex(1) -3 >Emitted(18, 12) Source(8, 12) + SourceIndex(1) +1 >Emitted(19, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(19, 10) Source(8, 10) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) --- >>> return instance1; 1->^^^^ @@ -297,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(19, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(19, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(19, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(19, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(19, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) --- >>>} 1 > @@ -310,7 +319,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(20, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/promiseChaining.js b/tests/baselines/reference/promiseChaining.js index 0a12fc70c17..c914937bd6c 100644 --- a/tests/baselines/reference/promiseChaining.js +++ b/tests/baselines/reference/promiseChaining.js @@ -18,6 +18,7 @@ var Chain = (function () { } Chain.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain(result); }; diff --git a/tests/baselines/reference/promiseChaining1.js b/tests/baselines/reference/promiseChaining1.js index 797401a8e3a..18b13758fb2 100644 --- a/tests/baselines/reference/promiseChaining1.js +++ b/tests/baselines/reference/promiseChaining1.js @@ -17,6 +17,7 @@ var Chain2 = (function () { } Chain2.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain2(result); }; diff --git a/tests/baselines/reference/promiseChaining2.js b/tests/baselines/reference/promiseChaining2.js index e0ff3f31557..3f05eccaa10 100644 --- a/tests/baselines/reference/promiseChaining2.js +++ b/tests/baselines/reference/promiseChaining2.js @@ -17,6 +17,7 @@ var Chain2 = (function () { } Chain2.prototype.then = function (cb) { var result = cb(this.value); + // should get a fresh type parameter which each then call var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain2(result); }; diff --git a/tests/baselines/reference/promiseIdentity.js b/tests/baselines/reference/promiseIdentity.js index dfeb5f5b0cb..5b57709e991 100644 --- a/tests/baselines/reference/promiseIdentity.js +++ b/tests/baselines/reference/promiseIdentity.js @@ -24,5 +24,7 @@ var y: Promise2; //// [promiseIdentity.js] var x; var x; +// Ok because T in this particular Promise2 is any, as are all the U and W references. +// Also, the V of Promise2 happens to coincide with the T of IPromise2 (they are both string). var y; var y; diff --git a/tests/baselines/reference/promiseIdentity2.js b/tests/baselines/reference/promiseIdentity2.js index 9f821520be6..8bb4139a737 100644 --- a/tests/baselines/reference/promiseIdentity2.js +++ b/tests/baselines/reference/promiseIdentity2.js @@ -12,5 +12,7 @@ var x: IPromise; var x: Promise; //// [promiseIdentity2.js] +// error because T is string in the first declaration, and T is boolean in the second +// Return type and callback return type are ok because T is any in this particular Promise var x; var x; diff --git a/tests/baselines/reference/promiseIdentityWithAny.js b/tests/baselines/reference/promiseIdentityWithAny.js index d4f053c5370..1a516067c8e 100644 --- a/tests/baselines/reference/promiseIdentityWithAny.js +++ b/tests/baselines/reference/promiseIdentityWithAny.js @@ -11,5 +11,6 @@ var x: IPromise; var x: Promise; //// [promiseIdentityWithAny.js] +// Should be ok because signature type parameters get erased to any var x; var x; diff --git a/tests/baselines/reference/promiseIdentityWithAny2.js b/tests/baselines/reference/promiseIdentityWithAny2.js index 9cf4ffe5b24..ec98b5ed4d9 100644 --- a/tests/baselines/reference/promiseIdentityWithAny2.js +++ b/tests/baselines/reference/promiseIdentityWithAny2.js @@ -23,7 +23,9 @@ var y: IPromise2; var y: Promise2; //// [promiseIdentityWithAny2.js] +// Error because type parameter arity doesn't match var x; var x; +// Error because string and any don't match var y; var y; diff --git a/tests/baselines/reference/promiseIdentityWithConstraints.js b/tests/baselines/reference/promiseIdentityWithConstraints.js index a1faac10071..0130d22df8f 100644 --- a/tests/baselines/reference/promiseIdentityWithConstraints.js +++ b/tests/baselines/reference/promiseIdentityWithConstraints.js @@ -11,5 +11,6 @@ var x: IPromise; var x: Promise; //// [promiseIdentityWithConstraints.js] +// Error because constraint V doesn't match var x; var x; diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js index c560318566b..e4682316baf 100644 --- a/tests/baselines/reference/propertyAccess.js +++ b/tests/baselines/reference/propertyAccess.js @@ -155,53 +155,80 @@ var obj = { var anyVar = {}; obj.y = 4; anyVar.x = anyVar.y = obj.x = anyVar.z; +// Dotted property access of property that exists var aa = obj.x; +// Dotted property access of property that exists on value's apparent type var bb = obj.hasOwnProperty; +// Dotted property access of property that doesn't exist on value's apparent type var cc = obj.qqq; +// Bracket notation property access using string literal value on type with property of that literal name var dd = obj['literal property']; var dd; +// Bracket notation property access using string literal value on type without property of that literal name var ee = obj['wa wa wa wa wa']; var ee; +// Bracket notation property access using numeric string literal value on type with property of that literal name var ff = obj['10']; var ff; +// Bracket notation property access using numeric string literal value on type without property of that literal name var gg = obj['1']; var gg; +// Bracket notation property access using numeric value on type with numeric index signature var hh = numIndex[3.0]; var hh; +// Bracket notation property access using enum value on type with numeric index signature var ii = numIndex[1 /* South */]; var ii; +// Bracket notation property access using value of type 'any' on type with numeric index signature var jj = numIndex[anyVar]; var jj; +// Bracket notation property access using string value on type with numeric index signature var kk = numIndex['what']; var kk; +// Bracket notation property access using value of other type on type with numeric index signature and no string index signature var ll = numIndex[window]; +// Bracket notation property access using string value on type with string index signature and no numeric index signature var mm = strIndex['N']; var mm; var mm2 = strIndex['zzz']; var mm2; +// Bracket notation property access using numeric value on type with string index signature and no numeric index signature var nn = strIndex[10]; var nn; +// Bracket notation property access using enum value on type with string index signature and no numeric index signature var oo = strIndex[2 /* East */]; var oo; +// Bracket notation property access using value of type 'any' on type with string index signature and no numeric index signature var pp = strIndex[null]; var pp; +// Bracket notation property access using numeric value on type with no index signatures var qq = noIndex[123]; var qq; +// Bracket notation property access using string value on type with no index signatures var rr = noIndex['zzzz']; var rr; +// Bracket notation property access using enum value on type with no index signatures var ss = noIndex[1 /* South */]; var ss; +// Bracket notation property access using value of type 'any' on type with no index signatures var tt = noIndex[null]; var tt; +// Bracket notation property access using values of other types on type with no index signatures var uu = noIndex[window]; +// Bracket notation property access using numeric value on type with numeric index signature and string index signature var vv = noIndex[32]; var vv; +// Bracket notation property access using enum value on type with numeric index signature and string index signature var ww = bothIndex[2 /* East */]; var ww; +// Bracket notation property access using value of type 'any' on type with numeric index signature and string index signature var xx = bothIndex[null]; var xx; +// Bracket notation property access using string value on type with numeric index signature and string index signature var yy = bothIndex['foo']; var yy; +// Bracket notation property access using numeric string value on type with numeric index signature and string index signature var zz = bothIndex['1.0']; var zz; +// Bracket notation property access using value of other type on type with numeric index signature and no string index signature and string index signature var zzzz = bothIndex[window]; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index a9cc407cae9..8c5fbe725de 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -120,14 +120,34 @@ var C = (function () { }; return C; })(); +//class C { +// f() { +// var x: U; +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +// g(x: U) { +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +//} var r1 = (new C()).f(); var r1b = (new C()).g(new B()); +//interface I { +// foo: U; +//} var i; var r2 = i.foo.foo(); var r2b = i.foo['foo'](); var a; +//var a: { +// (): U; +// (x: U): U; +// (x: U, y: T): U; +//} var r3 = a().foo(); var r3b = a()['foo'](); +// parameter supplied for type argument inference to succeed var aB = new B(); var r3c = a(aB, aB).foo(); var r3d = a(aB, aB)['foo'](); @@ -137,4 +157,10 @@ var b = { return a + x.foo(); } }; +//var b = { +// foo: (x: U, y: T) => { +// var a = x['foo'](); // should be string +// return a + x.foo(); +// } +//} var r4 = b.foo(aB, aB); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index e3d28c52376..2266f2e2200 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -86,10 +86,12 @@ var C = (function () { } C.prototype.f = function () { var x; + // BUG 823818 var a = x['foo'](); return a + x.foo(); }; C.prototype.g = function (x) { + // BUG 823818 var a = x['foo'](); return a + x.foo(); }; @@ -103,10 +105,12 @@ var r2b = i.foo['foo'](); var a; var r3 = a().foo(); var r3b = a()['foo'](); +// parameter supplied for type argument inference for U var r3c = a(new B()).foo(); var r3d = a(new B())['foo'](); var b = { foo: function (x) { + // BUG 823818 var a = x['foo'](); return a + x.foo(); } diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index 22d5af50719..cfe1404487a 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -84,6 +84,7 @@ var i; var r2 = i.foo.notHere(); var r2b = i.foo['foo'](); var a; +// BUG 794164 var r3 = a().notHere(); var r3b = a()['foo'](); var b = { diff --git a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js index f0d77deb185..ffbc946a368 100644 --- a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js +++ b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js @@ -31,6 +31,7 @@ var a; var b = { foo: null }; +// These should all be of type 'any' var r1 = (new C()).foo; var r2 = null.foo; var r3 = a.foo; diff --git a/tests/baselines/reference/propertyParameterWithQuestionMark.js b/tests/baselines/reference/propertyParameterWithQuestionMark.js index 754fe05adea..626f740d5cd 100644 --- a/tests/baselines/reference/propertyParameterWithQuestionMark.js +++ b/tests/baselines/reference/propertyParameterWithQuestionMark.js @@ -16,6 +16,7 @@ var C = (function () { } return C; })(); +// x should not be an optional property var v = {}; var v2; v = v2; diff --git a/tests/baselines/reference/propertySignatures.js b/tests/baselines/reference/propertySignatures.js index 23cfb040858..3b08792e8b6 100644 --- a/tests/baselines/reference/propertySignatures.js +++ b/tests/baselines/reference/propertySignatures.js @@ -21,13 +21,18 @@ test.bar = 2; //// [propertySignatures.js] +// Should be error - duplicate identifiers var foo1; +// Should be OK var foo2; foo2.a = 2; foo2.a = "0"; +// Should be error var foo3; +// Should be OK var foo4; var test = foo(); +// Should be OK var foo5; var test = foo5(); test.bar = 2; diff --git a/tests/baselines/reference/protoAsIndexInIndexExpression.js b/tests/baselines/reference/protoAsIndexInIndexExpression.js index 76e30a2b7f9..489e624cdc6 100644 --- a/tests/baselines/reference/protoAsIndexInIndexExpression.js +++ b/tests/baselines/reference/protoAsIndexInIndexExpression.js @@ -22,6 +22,7 @@ class C { //// [protoAsIndexInIndexExpression_0.js] exports.x; //// [protoAsIndexInIndexExpression_1.js] +/// var EntityPrototype = undefined; var WorkspacePrototype = { serialize: function () { diff --git a/tests/baselines/reference/recursiveInitializer.js b/tests/baselines/reference/recursiveInitializer.js index f8a06fc4fea..9afe964b457 100644 --- a/tests/baselines/reference/recursiveInitializer.js +++ b/tests/baselines/reference/recursiveInitializer.js @@ -20,15 +20,19 @@ var b4 = (!b4) && b4; // expected boolean here. actually 'any' var f = (x: string) => f(x); //// [recursiveInitializer.js] +// number unless otherwise specified var n1 = n1++; var n2 = n2 + n2; var n3 = n3 + n3; +// string unless otherwise specified var s1 = s1 + ''; var s2 = s2 + s2; var s3 = s3 + s3; var s4 = '' + s4; +// boolean unless otherwise specified var b1 = !b1; var b2 = !!b2; var b3 = !b3 || b3; var b4 = (!b4) && b4; +// (x:string) => any var f = function (x) { return f(x); }; diff --git a/tests/baselines/reference/reservedWords.js b/tests/baselines/reference/reservedWords.js index 173a987acc0..12fbcae0c65 100644 --- a/tests/baselines/reference/reservedWords.js +++ b/tests/baselines/reference/reservedWords.js @@ -24,6 +24,7 @@ var obj = { break: 3, function: 4 }; +//This compiles. var obj2 = { if: 0, while: 1, diff --git a/tests/baselines/reference/scannerS7.2_A1.5_T2.js b/tests/baselines/reference/scannerS7.2_A1.5_T2.js index 17b9ba93b1b..0100584d7a2 100644 --- a/tests/baselines/reference/scannerS7.2_A1.5_T2.js +++ b/tests/baselines/reference/scannerS7.2_A1.5_T2.js @@ -29,6 +29,7 @@ eval("\u00A0var x\u00A0= 1\u00A0"); if (x !== 1) { $ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)); } +//CHECK#2 var x = 1; if (x !== 1) { $ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/scannerS7.3_A1.1_T2.js b/tests/baselines/reference/scannerS7.3_A1.1_T2.js index 4cd94ccb32c..b107b5d6695 100644 --- a/tests/baselines/reference/scannerS7.3_A1.1_T2.js +++ b/tests/baselines/reference/scannerS7.3_A1.1_T2.js @@ -21,6 +21,15 @@ if (x !== 1) { //// [scannerS7.3_A1.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * LINE FEED (U+000A) may occur between any two tokens + * + * @path ch07/7.3/S7.3_A1.1_T2.js + * @description Insert real LINE FEED between tokens of var x=1 + */ +//CHECK#1 var x = 1; if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); diff --git a/tests/baselines/reference/scannerS7.6_A4.2_T1.js b/tests/baselines/reference/scannerS7.6_A4.2_T1.js index 7890b709dcc..653265db9db 100644 --- a/tests/baselines/reference/scannerS7.6_A4.2_T1.js +++ b/tests/baselines/reference/scannerS7.6_A4.2_T1.js @@ -146,6 +146,15 @@ if (Ё !== 1) { //// [scannerS7.6_A4.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.6/S7.6_A4.2_T1.js + * @description Check RUSSIAN CAPITAL ALPHABET + */ +//CHECK#А-Я var \u0410 = 1; if (А !== 1) { $ERROR('#А'); diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index d0c91f6cd03..1d72bbbf966 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -39,6 +39,7 @@ module M3 { //// [scopeResolutionIdentifiers.js] +// EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope var s; var M1; (function (M1) { diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js b/tests/baselines/reference/sourceMap-FileWithComments.js index e077784625d..b553c69715c 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js +++ b/tests/baselines/reference/sourceMap-FileWithComments.js @@ -51,12 +51,17 @@ var Shapes; return Point; })(); Shapes.Point = Point; + // Variable comment after class var a = 10; function foo() { } Shapes.foo = foo; + /** comment after function + * this is another comment + */ var b = 10; })(Shapes || (Shapes = {})); +/** Local Variable */ var p = new Shapes.Point(3, 4); var dist = p.getDist(); //# sourceMappingURL=sourceMap-FileWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js.map b/tests/baselines/reference/sourceMap-FileWithComments.js.map index 35bc5bf6ef7..61ce0055974 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js.map +++ b/tests/baselines/reference/sourceMap-FileWithComments.js.map @@ -1,2 +1,2 @@ //// [sourceMap-FileWithComments.js.map] -{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAOA,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,IAAaA,KAAKA;QAEdC,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAGnDD,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAG3DF,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,IAAI,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAOA,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAGXA,IAAaA,KAAKA;QAEdC,SAFSA,KAAKA,CAEKA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAGnDD,uBAAOA,GAAPA;YAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA;QAACA,CAACA;QAG3DF,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,GAALA,KASZA,CAAAA;IAGDA,AADAA,+BAA+BA;QAC3BA,CAACA,GAAGA,EAAEA,CAACA;IAEXA,SAAgBA,GAAGA;IACnBI,CAACA;IADeJ,UAAGA,GAAHA,GACfA,CAAAA;IAKDA,AAHAA;;MAEEA;QACEA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAGD,AADA,qBAAqB;IACjB,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt index e3238af1718..f4f41d1bee3 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt @@ -333,6 +333,7 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^ 4 > ^^^^^ 5 > ^ +6 > ^^^^^^^^^^^-> 1-> 2 > Point 3 > @@ -353,29 +354,38 @@ sourceFile:sourceMap-FileWithComments.ts 4 >Emitted(14, 25) Source(20, 6) + SourceIndex(0) name (Shapes) 5 >Emitted(14, 26) Source(20, 6) + SourceIndex(0) name (Shapes) --- ->>> var a = 10; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^-> -1 > +>>> // Variable comment after class +1->^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> > > // Variable comment after class > -2 > var -3 > a -4 > = -5 > 10 -6 > ; -1 >Emitted(15, 5) Source(23, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(15, 9) Source(23, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(15, 10) Source(23, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(15, 13) Source(23, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(15, 15) Source(23, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(15, 16) Source(23, 16) + SourceIndex(0) name (Shapes) +2 > +3 > // Variable comment after class +1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(15, 5) Source(22, 5) + SourceIndex(0) name (Shapes) +3 >Emitted(15, 36) Source(22, 36) + SourceIndex(0) name (Shapes) +--- +>>> var a = 10; +1 >^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^-> +1 > + > var +2 > a +3 > = +4 > 10 +5 > ; +1 >Emitted(16, 9) Source(23, 9) + SourceIndex(0) name (Shapes) +2 >Emitted(16, 10) Source(23, 10) + SourceIndex(0) name (Shapes) +3 >Emitted(16, 13) Source(23, 13) + SourceIndex(0) name (Shapes) +4 >Emitted(16, 15) Source(23, 15) + SourceIndex(0) name (Shapes) +5 >Emitted(16, 16) Source(23, 16) + SourceIndex(0) name (Shapes) --- >>> function foo() { 1->^^^^ @@ -386,9 +396,9 @@ sourceFile:sourceMap-FileWithComments.ts > 2 > export function 3 > foo -1->Emitted(16, 5) Source(25, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(16, 14) Source(25, 21) + SourceIndex(0) name (Shapes) -3 >Emitted(16, 17) Source(25, 24) + SourceIndex(0) name (Shapes) +1->Emitted(17, 5) Source(25, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(17, 14) Source(25, 21) + SourceIndex(0) name (Shapes) +3 >Emitted(17, 17) Source(25, 24) + SourceIndex(0) name (Shapes) --- >>> } 1 >^^^^ @@ -397,8 +407,8 @@ sourceFile:sourceMap-FileWithComments.ts 1 >() { > 2 > } -1 >Emitted(17, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo) -2 >Emitted(17, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo) +1 >Emitted(18, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo) +2 >Emitted(18, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo) --- >>> Shapes.foo = foo; 1->^^^^ @@ -406,43 +416,60 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^ 4 > ^^^ 5 > ^ +6 > ^^^^^^^^^^-> 1-> 2 > foo 3 > 4 > foo() { > } 5 > -1->Emitted(18, 5) Source(25, 21) + SourceIndex(0) name (Shapes) -2 >Emitted(18, 15) Source(25, 24) + SourceIndex(0) name (Shapes) -3 >Emitted(18, 18) Source(25, 21) + SourceIndex(0) name (Shapes) -4 >Emitted(18, 21) Source(26, 6) + SourceIndex(0) name (Shapes) -5 >Emitted(18, 22) Source(26, 6) + SourceIndex(0) name (Shapes) +1->Emitted(19, 5) Source(25, 21) + SourceIndex(0) name (Shapes) +2 >Emitted(19, 15) Source(25, 24) + SourceIndex(0) name (Shapes) +3 >Emitted(19, 18) Source(25, 21) + SourceIndex(0) name (Shapes) +4 >Emitted(19, 21) Source(26, 6) + SourceIndex(0) name (Shapes) +5 >Emitted(19, 22) Source(26, 6) + SourceIndex(0) name (Shapes) --- ->>> var b = 10; -1 >^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1 > +>>> /** comment after function +1->^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> > > /** comment after function > * this is another comment > */ > -2 > var -3 > b -4 > = -5 > 10 -6 > ; -1 >Emitted(19, 5) Source(31, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(19, 9) Source(31, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(19, 10) Source(31, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(19, 13) Source(31, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(19, 15) Source(31, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(19, 16) Source(31, 16) + SourceIndex(0) name (Shapes) +2 > +1->Emitted(20, 5) Source(31, 5) + SourceIndex(0) name (Shapes) +2 >Emitted(20, 5) Source(28, 5) + SourceIndex(0) name (Shapes) +--- +>>> * this is another comment +>>> */ +1->^^^^^^ +2 > ^^^^^^^^^^-> +1->/** comment after function + > * this is another comment + > */ +1->Emitted(22, 7) Source(30, 7) + SourceIndex(0) name (Shapes) +--- +>>> var b = 10; +1->^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^^^-> +1-> + > var +2 > b +3 > = +4 > 10 +5 > ; +1->Emitted(23, 9) Source(31, 9) + SourceIndex(0) name (Shapes) +2 >Emitted(23, 10) Source(31, 10) + SourceIndex(0) name (Shapes) +3 >Emitted(23, 13) Source(31, 13) + SourceIndex(0) name (Shapes) +4 >Emitted(23, 15) Source(31, 15) + SourceIndex(0) name (Shapes) +5 >Emitted(23, 16) Source(31, 16) + SourceIndex(0) name (Shapes) --- >>>})(Shapes || (Shapes = {})); 1-> @@ -452,7 +479,6 @@ sourceFile:sourceMap-FileWithComments.ts 5 > ^^^^^ 6 > ^^^^^^ 7 > ^^^^^^^^ -8 > ^^^^-> 1-> > 2 >} @@ -485,60 +511,70 @@ sourceFile:sourceMap-FileWithComments.ts > */ > var b = 10; > } -1->Emitted(20, 1) Source(32, 1) + SourceIndex(0) name (Shapes) -2 >Emitted(20, 2) Source(32, 2) + SourceIndex(0) name (Shapes) -3 >Emitted(20, 4) Source(8, 8) + SourceIndex(0) -4 >Emitted(20, 10) Source(8, 14) + SourceIndex(0) -5 >Emitted(20, 15) Source(8, 8) + SourceIndex(0) -6 >Emitted(20, 21) Source(8, 14) + SourceIndex(0) -7 >Emitted(20, 29) Source(32, 2) + SourceIndex(0) +1->Emitted(24, 1) Source(32, 1) + SourceIndex(0) name (Shapes) +2 >Emitted(24, 2) Source(32, 2) + SourceIndex(0) name (Shapes) +3 >Emitted(24, 4) Source(8, 8) + SourceIndex(0) +4 >Emitted(24, 10) Source(8, 14) + SourceIndex(0) +5 >Emitted(24, 15) Source(8, 8) + SourceIndex(0) +6 >Emitted(24, 21) Source(8, 14) + SourceIndex(0) +7 >Emitted(24, 29) Source(32, 2) + SourceIndex(0) --- ->>>var p = new Shapes.Point(3, 4); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^ -9 > ^ -10> ^ -11> ^^ -12> ^ -13> ^ -14> ^ -1-> +>>>/** Local Variable */ +1 > +2 > +3 >^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > > >/** Local Variable */ > -2 >var -3 > p -4 > : IPoint = -5 > new -6 > Shapes -7 > . -8 > Point -9 > ( -10> 3 -11> , -12> 4 -13> ) -14> ; -1->Emitted(21, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(35, 5) + SourceIndex(0) -3 >Emitted(21, 6) Source(35, 6) + SourceIndex(0) -4 >Emitted(21, 9) Source(35, 17) + SourceIndex(0) -5 >Emitted(21, 13) Source(35, 21) + SourceIndex(0) -6 >Emitted(21, 19) Source(35, 27) + SourceIndex(0) -7 >Emitted(21, 20) Source(35, 28) + SourceIndex(0) -8 >Emitted(21, 25) Source(35, 33) + SourceIndex(0) -9 >Emitted(21, 26) Source(35, 34) + SourceIndex(0) -10>Emitted(21, 27) Source(35, 35) + SourceIndex(0) -11>Emitted(21, 29) Source(35, 37) + SourceIndex(0) -12>Emitted(21, 30) Source(35, 38) + SourceIndex(0) -13>Emitted(21, 31) Source(35, 39) + SourceIndex(0) -14>Emitted(21, 32) Source(35, 40) + SourceIndex(0) +2 > +3 >/** Local Variable */ +1 >Emitted(25, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(25, 1) Source(34, 1) + SourceIndex(0) +3 >Emitted(25, 22) Source(34, 22) + SourceIndex(0) +--- +>>>var p = new Shapes.Point(3, 4); +1->^^^^ +2 > ^ +3 > ^^^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^^ +8 > ^ +9 > ^ +10> ^^ +11> ^ +12> ^ +13> ^ +1-> + >var +2 > p +3 > : IPoint = +4 > new +5 > Shapes +6 > . +7 > Point +8 > ( +9 > 3 +10> , +11> 4 +12> ) +13> ; +1->Emitted(26, 5) Source(35, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(35, 6) + SourceIndex(0) +3 >Emitted(26, 9) Source(35, 17) + SourceIndex(0) +4 >Emitted(26, 13) Source(35, 21) + SourceIndex(0) +5 >Emitted(26, 19) Source(35, 27) + SourceIndex(0) +6 >Emitted(26, 20) Source(35, 28) + SourceIndex(0) +7 >Emitted(26, 25) Source(35, 33) + SourceIndex(0) +8 >Emitted(26, 26) Source(35, 34) + SourceIndex(0) +9 >Emitted(26, 27) Source(35, 35) + SourceIndex(0) +10>Emitted(26, 29) Source(35, 37) + SourceIndex(0) +11>Emitted(26, 30) Source(35, 38) + SourceIndex(0) +12>Emitted(26, 31) Source(35, 39) + SourceIndex(0) +13>Emitted(26, 32) Source(35, 40) + SourceIndex(0) --- >>>var dist = p.getDist(); 1 > @@ -561,14 +597,14 @@ sourceFile:sourceMap-FileWithComments.ts 7 > getDist 8 > () 9 > ; -1 >Emitted(22, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(22, 5) Source(36, 5) + SourceIndex(0) -3 >Emitted(22, 9) Source(36, 9) + SourceIndex(0) -4 >Emitted(22, 12) Source(36, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(36, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(36, 14) + SourceIndex(0) -7 >Emitted(22, 21) Source(36, 21) + SourceIndex(0) -8 >Emitted(22, 23) Source(36, 23) + SourceIndex(0) -9 >Emitted(22, 24) Source(36, 24) + SourceIndex(0) +1 >Emitted(27, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(36, 5) + SourceIndex(0) +3 >Emitted(27, 9) Source(36, 9) + SourceIndex(0) +4 >Emitted(27, 12) Source(36, 12) + SourceIndex(0) +5 >Emitted(27, 13) Source(36, 13) + SourceIndex(0) +6 >Emitted(27, 14) Source(36, 14) + SourceIndex(0) +7 >Emitted(27, 21) Source(36, 21) + SourceIndex(0) +8 >Emitted(27, 23) Source(36, 23) + SourceIndex(0) +9 >Emitted(27, 24) Source(36, 24) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMap-FileWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js b/tests/baselines/reference/sourceMapValidationWithComments.js index 1c64d4e2a03..2ff46670824 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.js +++ b/tests/baselines/reference/sourceMapValidationWithComments.js @@ -26,6 +26,7 @@ var DebugClass = (function () { function DebugClass() { } DebugClass.debugFunc = function () { + // Start Debugger Test Code var i = 0; i++; i++; diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js.map b/tests/baselines/reference/sourceMapValidationWithComments.js.map index 290c68a00b3..175357902dd 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.js.map +++ b/tests/baselines/reference/sourceMapValidationWithComments.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationWithComments.js.map] -{"version":3,"file":"sourceMapValidationWithComments.js","sourceRoot":"","sources":["sourceMapValidationWithComments.ts"],"names":["DebugClass","DebugClass.constructor","DebugClass.debugFunc"],"mappings":"AAAA,IAAM,UAAU;IAAhBA,SAAMA,UAAUA;IAoBhBC,CAACA;IAlBiBD,oBAASA,GAAvBA;QAGIE,IAAIA,CAACA,GAAGA,CAACA,CAACA;QACVA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QAIJA,MAAMA,CAACA,IAAIA,CAACA;IAChBA,CAACA;IACLF,iBAACA;AAADA,CAACA,AApBD,IAoBC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationWithComments.js","sourceRoot":"","sources":["sourceMapValidationWithComments.ts"],"names":["DebugClass","DebugClass.constructor","DebugClass.debugFunc"],"mappings":"AAAA,IAAM,UAAU;IAAhBA,SAAMA,UAAUA;IAoBhBC,CAACA;IAlBiBD,oBAASA,GAAvBA;QAGIE,AADAA,2BAA2BA;YACvBA,CAACA,GAAGA,CAACA,CAACA;QACVA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QAIJA,MAAMA,CAACA,IAAIA,CAACA;IAChBA,CAACA;IACLF,iBAACA;AAADA,CAACA,AApBD,IAoBC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt b/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt index 68fe38161b9..e77e093a757 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt @@ -64,6 +64,7 @@ sourceFile:sourceMapValidationWithComments.ts 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^ 3 > ^^^ +4 > ^^^^^^^^^-> 1-> 2 > debugFunc 3 > @@ -71,28 +72,37 @@ sourceFile:sourceMapValidationWithComments.ts 2 >Emitted(4, 25) Source(3, 28) + SourceIndex(0) name (DebugClass) 3 >Emitted(4, 28) Source(3, 5) + SourceIndex(0) name (DebugClass) --- ->>> var i = 0; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -1 >public static debugFunc() { +>>> // Start Debugger Test Code +1->^^^^^^^^ +2 > +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1->public static debugFunc() { > > // Start Debugger Test Code > -2 > var -3 > i -4 > = -5 > 0 -6 > ; -1 >Emitted(5, 9) Source(6, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(5, 13) Source(6, 13) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(5, 14) Source(6, 14) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(5, 17) Source(6, 17) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(5, 18) Source(6, 18) + SourceIndex(0) name (DebugClass.debugFunc) -6 >Emitted(5, 19) Source(6, 19) + SourceIndex(0) name (DebugClass.debugFunc) +2 > +3 > // Start Debugger Test Code +1->Emitted(5, 9) Source(6, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(5, 36) Source(5, 36) + SourceIndex(0) name (DebugClass.debugFunc) +--- +>>> var i = 0; +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^ +5 > ^ +1 > + > var +2 > i +3 > = +4 > 0 +5 > ; +1 >Emitted(6, 13) Source(6, 13) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(6, 17) Source(6, 17) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(6, 18) Source(6, 18) + SourceIndex(0) name (DebugClass.debugFunc) +5 >Emitted(6, 19) Source(6, 19) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1 >^^^^^^^^ @@ -105,10 +115,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1 >Emitted(6, 9) Source(7, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(6, 10) Source(7, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(6, 12) Source(7, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(6, 13) Source(7, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(7, 9) Source(7, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(7, 10) Source(7, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(7, 12) Source(7, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(7, 13) Source(7, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -121,10 +131,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(7, 9) Source(8, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(7, 10) Source(8, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(7, 12) Source(8, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(7, 13) Source(8, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(8, 9) Source(8, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(8, 13) Source(8, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -137,10 +147,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(8, 9) Source(9, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(8, 10) Source(9, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(8, 13) Source(9, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(9, 9) Source(9, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(9, 10) Source(9, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(9, 13) Source(9, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -153,10 +163,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(9, 9) Source(10, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(9, 10) Source(10, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(9, 12) Source(10, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(9, 13) Source(10, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(10, 9) Source(10, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(10, 10) Source(10, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(10, 12) Source(10, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(10, 13) Source(10, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -169,10 +179,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(10, 9) Source(11, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(10, 10) Source(11, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(10, 12) Source(11, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(10, 13) Source(11, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(11, 9) Source(11, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(11, 10) Source(11, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(11, 12) Source(11, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(11, 13) Source(11, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -185,10 +195,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(11, 9) Source(12, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(11, 10) Source(12, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(11, 12) Source(12, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(11, 13) Source(12, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(12, 9) Source(12, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(12, 12) Source(12, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(12, 13) Source(12, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -201,10 +211,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(12, 9) Source(13, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(12, 10) Source(13, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(12, 12) Source(13, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(12, 13) Source(13, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(13, 9) Source(13, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(13, 10) Source(13, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(13, 12) Source(13, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(13, 13) Source(13, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -217,10 +227,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(13, 9) Source(14, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(13, 10) Source(14, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(13, 12) Source(14, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(13, 13) Source(14, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(14, 9) Source(14, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(14, 10) Source(14, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(14, 12) Source(14, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(14, 13) Source(14, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> i++; 1->^^^^^^^^ @@ -233,10 +243,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(14, 9) Source(15, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(14, 10) Source(15, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(14, 12) Source(15, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(14, 13) Source(15, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(15, 9) Source(15, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(15, 10) Source(15, 10) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(15, 12) Source(15, 12) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(15, 13) Source(15, 13) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> return true; 1->^^^^^^^^ @@ -253,11 +263,11 @@ sourceFile:sourceMapValidationWithComments.ts 3 > 4 > true 5 > ; -1->Emitted(15, 9) Source(19, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(15, 15) Source(19, 15) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(15, 16) Source(19, 16) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(15, 20) Source(19, 20) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(15, 21) Source(19, 21) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(16, 9) Source(19, 9) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(16, 15) Source(19, 15) + SourceIndex(0) name (DebugClass.debugFunc) +3 >Emitted(16, 16) Source(19, 16) + SourceIndex(0) name (DebugClass.debugFunc) +4 >Emitted(16, 20) Source(19, 20) + SourceIndex(0) name (DebugClass.debugFunc) +5 >Emitted(16, 21) Source(19, 21) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> }; 1 >^^^^ @@ -266,8 +276,8 @@ sourceFile:sourceMapValidationWithComments.ts 1 > > 2 > } -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(16, 6) Source(20, 6) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(17, 5) Source(20, 5) + SourceIndex(0) name (DebugClass.debugFunc) +2 >Emitted(17, 6) Source(20, 6) + SourceIndex(0) name (DebugClass.debugFunc) --- >>> return DebugClass; 1->^^^^ @@ -275,8 +285,8 @@ sourceFile:sourceMapValidationWithComments.ts 1-> > 2 > } -1->Emitted(17, 5) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(17, 22) Source(21, 2) + SourceIndex(0) name (DebugClass) +1->Emitted(18, 5) Source(21, 1) + SourceIndex(0) name (DebugClass) +2 >Emitted(18, 22) Source(21, 2) + SourceIndex(0) name (DebugClass) --- >>>})(); 1 > @@ -308,9 +318,9 @@ sourceFile:sourceMapValidationWithComments.ts > return true; > } > } -1 >Emitted(18, 1) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(18, 2) Source(21, 2) + SourceIndex(0) name (DebugClass) -3 >Emitted(18, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(18, 6) Source(21, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(21, 1) + SourceIndex(0) name (DebugClass) +2 >Emitted(19, 2) Source(21, 2) + SourceIndex(0) name (DebugClass) +3 >Emitted(19, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(21, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/staticInstanceResolution5.js b/tests/baselines/reference/staticInstanceResolution5.js index 45a4fb726ab..6ca976ae46a 100644 --- a/tests/baselines/reference/staticInstanceResolution5.js +++ b/tests/baselines/reference/staticInstanceResolution5.js @@ -18,6 +18,7 @@ function z(w3: WinJS) { } //// [staticInstanceResolution5_1.js] define(["require", "exports"], function (require, exports) { + // these 3 should be errors var x = function (w1) { }; var y = function (w2) { diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index d49fd7c1fe4..95e218816a0 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -70,6 +70,7 @@ var Foo = (function () { return Foo; })(); var a; +// error var b = { a: A, b: B diff --git a/tests/baselines/reference/styleOptions.js b/tests/baselines/reference/styleOptions.js index f17ce9a71eb..d2eb79937c3 100644 --- a/tests/baselines/reference/styleOptions.js +++ b/tests/baselines/reference/styleOptions.js @@ -8,6 +8,7 @@ var t = x == y; //// [styleOptions.js] +///