diff --git a/internal/printer/printer.go b/internal/printer/printer.go index 21ca046e61..85ee988b56 100644 --- a/internal/printer/printer.go +++ b/internal/printer/printer.go @@ -4384,18 +4384,24 @@ func (p *Printer) emitSourceFile(node *ast.SourceFile) { p.writeLine() - state := p.emitDetachedCommentsBeforeStatementList(node.AsNode(), node.Statements.Loc) p.pushNameGenerationScope(node.AsNode()) p.generateAllNames(node.Statements) index := 0 + var state *commentState if node.ScriptKind != core.ScriptKindJSON { p.emitShebangIfNeeded(node) index = p.emitPrologueDirectives(node.Statements) + if !p.writer.IsAtStartOfLine() { + p.writeLine() + } + state = p.emitDetachedCommentsBeforeStatementList(node.AsNode(), node.Statements.Loc) p.emitHelpers(node.AsNode()) if node.IsDeclarationFile { p.emitTripleSlashDirectives(node) } + } else { + state = p.emitDetachedCommentsBeforeStatementList(node.AsNode(), node.Statements.Loc) } // !!! Emit triple-slash directives @@ -5083,7 +5089,7 @@ func (p *Printer) emitDetachedCommentsBeforeStatementList(node *ast.Node, detach containerPos := p.containerPos containerEnd := p.containerEnd declarationListContainerEnd := p.declarationListContainerEnd - skipLeadingComments := emitFlags&EFNoLeadingComments == 0 && !ast.PositionIsSynthesized(detachedRange.Pos()) + skipLeadingComments := ast.PositionIsSynthesized(detachedRange.Pos()) || emitFlags&EFNoLeadingComments != 0 if !skipLeadingComments { p.emitDetachedCommentsAndUpdateCommentsInfo(detachedRange) diff --git a/testdata/baselines/reference/compiler/declarationEmitNoCrashOnCrossFileNode.js b/testdata/baselines/reference/compiler/declarationEmitNoCrashOnCrossFileNode.js index e76b2fcda6..a62af024ff 100644 --- a/testdata/baselines/reference/compiler/declarationEmitNoCrashOnCrossFileNode.js +++ b/testdata/baselines/reference/compiler/declarationEmitNoCrashOnCrossFileNode.js @@ -16,11 +16,11 @@ export function foo(): ({ a, b }: { a: string, b: string }) => void { //// [other.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo = foo; /** * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eu aliquet lectus, nec rhoncus metus. Donec dapibus consectetur risus vitae porta. Aenean nisi neque, dignissim quis varius vel, volutpat vel tellus. Praesent lacinia molestie est, vel convallis odio ornare id. Pellentesque quis purus ante. Morbi a nisl justo. Etiam malesuada ipsum sem, fringilla rhoncus turpis ullamcorper et. Aenean laoreet, nisl id tempus pellentesque, elit elit congue felis, sit amet luctus nulla orci sit amet velit. Praesent non tincidunt nisi, at tempor eros. Quisque tincidunt euismod posuere. Ut blandit mauris elit, a porttitor orci aliquam ac. Duis imperdiet gravida ultrices. In. */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; function foo() { return () => { }; } diff --git a/testdata/baselines/reference/compiler/emitEndOfFileJSDocComments2.js b/testdata/baselines/reference/compiler/emitEndOfFileJSDocComments2.js index 890f9d0031..30a336e781 100644 --- a/testdata/baselines/reference/compiler/emitEndOfFileJSDocComments2.js +++ b/testdata/baselines/reference/compiler/emitEndOfFileJSDocComments2.js @@ -23,8 +23,8 @@ function test(param) { //// [emitEndOfFileJSDocComments2.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** @typedef {number} A */ +Object.defineProperty(exports, "__esModule", { value: true }); /** * JSDoc comment for function * @param {string} param - A string parameter diff --git a/testdata/baselines/reference/submodule/compiler/APISample_Watch.js b/testdata/baselines/reference/submodule/compiler/APISample_Watch.js index de90b96724..ce29e2fa65 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_Watch.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_Watch.js @@ -85,6 +85,11 @@ watchMain(); //// [APISample_Watch.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript-wiki/blob/master/Using-the-Compiler-API.md#writing-an-incremental-program-watcher + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); const formatHost = { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_Watch.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_Watch.js.diff index 499c77d7d5..a44deac7f4 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_Watch.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_Watch.js.diff @@ -1,14 +1,8 @@ --- old.APISample_Watch.js +++ new.APISample_Watch.js -@@= skipped -84, +84 lines =@@ - - //// [APISample_Watch.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript-wiki/blob/master/Using-the-Compiler-API.md#writing-an-incremental-program-watcher -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -90, +90 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js index d5b1a505ba..eda1e3f02b 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js @@ -58,6 +58,10 @@ watchMain(); //// [APISample_WatchWithDefaults.js] "use strict"; +/* + * Note: This test is a public API sample. This uses default sys interface without having to pass anything + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); function watchMain() { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js.diff index 495001bf42..be2d9cde75 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithDefaults.js.diff @@ -1,13 +1,8 @@ --- old.APISample_WatchWithDefaults.js +++ new.APISample_WatchWithDefaults.js -@@= skipped -57, +57 lines =@@ - - //// [APISample_WatchWithDefaults.js] - "use strict"; --/* -- * Note: This test is a public API sample. This uses default sys interface without having to pass anything -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -62, +62 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js index 8e48f3cffc..915dc80a83 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js @@ -65,6 +65,10 @@ watchMain(); //// [APISample_WatchWithOwnWatchHost.js] "use strict"; +/* + * Note: This test is a public API sample. This sample verifies creating abstract builder to watch list of root files + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); function watchMain() { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js.diff index 25d0f11df7..4d88a0aa98 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_WatchWithOwnWatchHost.js.diff @@ -1,13 +1,8 @@ --- old.APISample_WatchWithOwnWatchHost.js +++ new.APISample_WatchWithOwnWatchHost.js -@@= skipped -64, +64 lines =@@ - - //// [APISample_WatchWithOwnWatchHost.js] - "use strict"; --/* -- * Note: This test is a public API sample. This sample verifies creating abstract builder to watch list of root files -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -69, +69 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_compile.js b/testdata/baselines/reference/submodule/compiler/APISample_compile.js index 20616a8c0c..fdf4166c68 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_compile.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_compile.js @@ -48,6 +48,11 @@ compile(process.argv.slice(2), { //// [APISample_compile.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.compile = compile; const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_compile.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_compile.js.diff index b2e0459c6f..9b6c00442b 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_compile.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_compile.js.diff @@ -1,14 +1,7 @@ --- old.APISample_compile.js +++ new.APISample_compile.js -@@= skipped -47, +47 lines =@@ - - //// [APISample_compile.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -54, +54 lines =@@ + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.compile = compile; -var ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js index e9c98da1e3..3a50a28422 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js @@ -123,6 +123,12 @@ function getSomeOtherTags(node: ts.Node) { //// [APISample_jsdoc.js] "use strict"; +/* + * Note: This test is a public API sample. The original sources can be found + * at: https://github.com/YousefED/typescript-json-schema + * https://github.com/vega/ts-json-schema-generator + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); // excerpted from https://github.com/YousefED/typescript-json-schema diff --git a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff index 939a10fa62..9989abff97 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_jsdoc.js.diff @@ -1,15 +1,8 @@ --- old.APISample_jsdoc.js +++ new.APISample_jsdoc.js -@@= skipped -122, +122 lines =@@ - - //// [APISample_jsdoc.js] - "use strict"; --/* -- * Note: This test is a public API sample. The original sources can be found -- * at: https://github.com/YousefED/typescript-json-schema -- * https://github.com/vega/ts-json-schema-generator -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -129, +129 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_linter.js b/testdata/baselines/reference/submodule/compiler/APISample_linter.js index 81cba71e70..be5ae7c4e5 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_linter.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_linter.js @@ -74,6 +74,11 @@ fileNames.forEach(fileName => { //// [APISample_linter.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.delint = delint; const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff index 2f9b2b9e1f..5bc028be72 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_linter.js.diff @@ -1,14 +1,7 @@ --- old.APISample_linter.js +++ new.APISample_linter.js -@@= skipped -73, +73 lines =@@ - - //// [APISample_linter.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -80, +80 lines =@@ + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.delint = delint; -var ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js b/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js index 2d4cb20590..4359a0c275 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js @@ -46,6 +46,11 @@ export function createProgram(rootFiles: string[], compilerOptionsJson: string): //// [APISample_parseConfig.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createProgram = createProgram; const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js.diff index aa2225246a..417f4c229e 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_parseConfig.js.diff @@ -1,14 +1,7 @@ --- old.APISample_parseConfig.js +++ new.APISample_parseConfig.js -@@= skipped -45, +45 lines =@@ - - //// [APISample_parseConfig.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -52, +52 lines =@@ + */ Object.defineProperty(exports, "__esModule", { value: true }); exports.createProgram = createProgram; -var ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_transform.js b/testdata/baselines/reference/submodule/compiler/APISample_transform.js index c462a864e7..8f1b028cad 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_transform.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_transform.js @@ -26,6 +26,11 @@ console.log(JSON.stringify(result)); //// [APISample_transform.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); const source = "let x: string = 'string'"; diff --git a/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff index 62ddcd3067..353eeba78c 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_transform.js.diff @@ -1,14 +1,8 @@ --- old.APISample_transform.js +++ new.APISample_transform.js -@@= skipped -25, +25 lines =@@ - - //// [APISample_transform.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -31, +31 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js index 0b04a6309e..4b2a3906c9 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js +++ b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js @@ -121,6 +121,11 @@ watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); //// [APISample_watcher.js] "use strict"; +/* + * Note: This test is a public API sample. The sample sources can be found + * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); const ts = require("typescript"); function watch(rootFileNames, options) { diff --git a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff index 7872ebf267..9b572eae42 100644 --- a/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff +++ b/testdata/baselines/reference/submodule/compiler/APISample_watcher.js.diff @@ -1,14 +1,8 @@ --- old.APISample_watcher.js +++ new.APISample_watcher.js -@@= skipped -120, +120 lines =@@ - - //// [APISample_watcher.js] - "use strict"; --/* -- * Note: This test is a public API sample. The sample sources can be found -- * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services -- * Please log a "breaking change" issue for any API breaking change affecting this issue -- */ +@@= skipped -126, +126 lines =@@ + * Please log a "breaking change" issue for any API breaking change affecting this issue + */ Object.defineProperty(exports, "__esModule", { value: true }); -var ts = require("typescript"); +const ts = require("typescript"); diff --git a/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js b/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js index 6632073318..88a35b31b6 100644 --- a/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js +++ b/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js @@ -29,6 +29,7 @@ class RegularClass { } //// [accessorInAmbientContextES5.js] +// Should allow accessor in ambient contexts even when targeting ES5 // Regular class should still error when targeting ES5 class RegularClass { accessor shouldError; // Should still error diff --git a/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js.diff b/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js.diff index 5a989ff971..e1bf7b98fc 100644 --- a/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/accessorInAmbientContextES5.js.diff @@ -1,10 +1,9 @@ --- old.accessorInAmbientContextES5.js +++ new.accessorInAmbientContextES5.js -@@= skipped -28, +28 lines =@@ - } +@@= skipped -29, +29 lines =@@ //// [accessorInAmbientContextES5.js] --// Should allow accessor in ambient contexts even when targeting ES5 + // Should allow accessor in ambient contexts even when targeting ES5 -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); diff --git a/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js b/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js index 3b810f99c3..177eee9290 100644 --- a/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js +++ b/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js @@ -36,6 +36,7 @@ let check3: test3 = "y"; //// [aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js] +// the type printback for every `test` below should be "y" let check = "y"; let check1 = "y"; let check2 = "y"; diff --git a/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js.diff b/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js.diff index 5f3c71a237..bfdda90285 100644 --- a/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js.diff +++ b/testdata/baselines/reference/submodule/compiler/aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js.diff @@ -5,7 +5,6 @@ //// [aliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js] -"use strict"; --// the type printback for every `test` below should be "y" + // the type printback for every `test` below should be "y" let check = "y"; - let check1 = "y"; - let check2 = "y"; \ No newline at end of file + let check1 = "y"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js b/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js index c84dcda198..e12e847485 100644 --- a/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js +++ b/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js @@ -8,7 +8,7 @@ m1.f(); //// [amdDependencyComment1.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const m1 = require("m2"); m1.f(); diff --git a/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js.diff b/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js.diff index 848a44ccbb..de0a9033ec 100644 --- a/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/amdDependencyComment1.js.diff @@ -1,12 +1,9 @@ --- old.amdDependencyComment1.js +++ new.amdDependencyComment1.js -@@= skipped -7, +7 lines =@@ - - //// [amdDependencyComment1.js] +@@= skipped -9, +9 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var m1 = require("m2"); -+/// +const m1 = require("m2"); m1.f(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js b/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js index e57a4276fe..7538bd86ee 100644 --- a/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js +++ b/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js @@ -8,7 +8,7 @@ m1.f(); //// [amdDependencyCommentName1.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const m1 = require("m2"); m1.f(); diff --git a/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js.diff b/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js.diff index 71ca61c44d..98845f5611 100644 --- a/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/amdDependencyCommentName1.js.diff @@ -1,12 +1,9 @@ --- old.amdDependencyCommentName1.js +++ new.amdDependencyCommentName1.js -@@= skipped -7, +7 lines =@@ - - //// [amdDependencyCommentName1.js] +@@= skipped -9, +9 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var m1 = require("m2"); -+/// +const m1 = require("m2"); m1.f(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrayFrom.js b/testdata/baselines/reference/submodule/compiler/arrayFrom.js index fc8159f804..477082fedc 100644 --- a/testdata/baselines/reference/submodule/compiler/arrayFrom.js +++ b/testdata/baselines/reference/submodule/compiler/arrayFrom.js @@ -39,6 +39,8 @@ function getEither (in1: Iterable, in2: ArrayLike) { //// [arrayFrom.js] +// Tests fix for #20432, ensures Array.from accepts all valid inputs +// Also tests for #19682 const inputA = []; const inputB = []; const inputALike = { length: 0 }; diff --git a/testdata/baselines/reference/submodule/compiler/arrayFrom.js.diff b/testdata/baselines/reference/submodule/compiler/arrayFrom.js.diff deleted file mode 100644 index 9386f60d71..0000000000 --- a/testdata/baselines/reference/submodule/compiler/arrayFrom.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.arrayFrom.js -+++ new.arrayFrom.js -@@= skipped -38, +38 lines =@@ - - - //// [arrayFrom.js] --// Tests fix for #20432, ensures Array.from accepts all valid inputs --// Also tests for #19682 - const inputA = []; - const inputB = []; - const inputALike = { length: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js index 46abecf4fc..96bae1d84f 100644 --- a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js +++ b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js @@ -33,6 +33,7 @@ fn(a => { }); //// [assignmentCompatability_checking-apply-member-off-of-function-interface.js] +// 3.8.4 Assignment Compatibility var x; // Should fail x = ''; diff --git a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js.diff b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js.diff deleted file mode 100644 index 1f469916de..0000000000 --- a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.assignmentCompatability_checking-apply-member-off-of-function-interface.js -+++ new.assignmentCompatability_checking-apply-member-off-of-function-interface.js -@@= skipped -32, +32 lines =@@ - - - //// [assignmentCompatability_checking-apply-member-off-of-function-interface.js] --// 3.8.4 Assignment Compatibility - var x; - // Should fail - x = ''; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js index 42551f45cb..f4d2de50fc 100644 --- a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js +++ b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js @@ -33,6 +33,7 @@ fn(a => { }); //// [assignmentCompatability_checking-call-member-off-of-function-interface.js] +// 3.8.4 Assignment Compatibility var x; // Should fail x = ''; diff --git a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js.diff b/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js.diff deleted file mode 100644 index d61f6de7b5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.assignmentCompatability_checking-call-member-off-of-function-interface.js -+++ new.assignmentCompatability_checking-call-member-off-of-function-interface.js -@@= skipped -32, +32 lines =@@ - - - //// [assignmentCompatability_checking-call-member-off-of-function-interface.js] --// 3.8.4 Assignment Compatibility - var x; - // Should fail - x = ''; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js b/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js index ac1a06dee4..c652c79aa7 100644 --- a/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js +++ b/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js @@ -26,6 +26,7 @@ function g(x) { } //// [assignmentToReferenceTypes.js] +// Should all be allowed M = null; class C { } diff --git a/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js.diff b/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js.diff deleted file mode 100644 index 569d50de4a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/assignmentToReferenceTypes.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.assignmentToReferenceTypes.js -+++ new.assignmentToReferenceTypes.js -@@= skipped -25, +25 lines =@@ - } - - //// [assignmentToReferenceTypes.js] --// Should all be allowed - M = null; - class C { - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js b/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js index 2668ace0b0..45c06fe734 100644 --- a/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js +++ b/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js @@ -6,6 +6,7 @@ async ({ foo, bar, ...rest }) => bar(await foo); //// [asyncFunctionTempVariableScoping.js] +// https://github.com/Microsoft/TypeScript/issues/19187 var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -17,7 +18,6 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; -// https://github.com/Microsoft/TypeScript/issues/19187 async (_a) => { var { foo, bar } = _a, rest = __rest(_a, ["foo", "bar"]); return bar(await foo); diff --git a/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js.diff b/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js.diff index c50a92ee97..8e68b6a276 100644 --- a/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js.diff +++ b/testdata/baselines/reference/submodule/compiler/asyncFunctionTempVariableScoping.js.diff @@ -1,10 +1,9 @@ --- old.asyncFunctionTempVariableScoping.js +++ new.asyncFunctionTempVariableScoping.js -@@= skipped -5, +5 lines =@@ - async ({ foo, bar, ...rest }) => bar(await foo); +@@= skipped -6, +6 lines =@@ //// [asyncFunctionTempVariableScoping.js] --// https://github.com/Microsoft/TypeScript/issues/19187 + // https://github.com/Microsoft/TypeScript/issues/19187 -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { @@ -17,12 +16,11 @@ var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) -@@= skipped -21, +11 lines =@@ +@@= skipped -20, +11 lines =@@ } return t; }; -(_a) => __awaiter(this, void 0, void 0, function* () { -+// https://github.com/Microsoft/TypeScript/issues/19187 +async (_a) => { var { foo, bar } = _a, rest = __rest(_a, ["foo", "bar"]); - return bar(yield foo); diff --git a/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js b/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js index 0ada4a51d6..0d3698bb39 100644 --- a/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js +++ b/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js @@ -36,6 +36,7 @@ interface i4 { //import i4 = require(''); // error //// [augmentedTypesInterface.js] +// interface then interface class i2 { bar() { return 1; diff --git a/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js.diff b/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js.diff deleted file mode 100644 index cae881d4fe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/augmentedTypesInterface.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.augmentedTypesInterface.js -+++ new.augmentedTypesInterface.js -@@= skipped -35, +35 lines =@@ - //import i4 = require(''); // error - - //// [augmentedTypesInterface.js] --// interface then interface - class i2 { - bar() { - return 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js b/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js index f59d46d642..ef3170d82a 100644 --- a/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js +++ b/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js @@ -26,6 +26,7 @@ goofus((a: string) => ({ dog: function() { return a; } })); //// [badInferenceLowerPriorityThanGoodInference.js] +// Repro from #13118 const result = canYouInferThis(() => ({ a: { BLAH: 33 }, b: x => { } diff --git a/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js.diff b/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js.diff deleted file mode 100644 index c2f7f0e6f4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/badInferenceLowerPriorityThanGoodInference.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.badInferenceLowerPriorityThanGoodInference.js -+++ new.badInferenceLowerPriorityThanGoodInference.js -@@= skipped -25, +25 lines =@@ - - - //// [badInferenceLowerPriorityThanGoodInference.js] --// Repro from #13118 - const result = canYouInferThis(() => ({ - a: { BLAH: 33 }, - b: x => { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js b/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js index 378671931c..c15c8506ae 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js +++ b/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js @@ -26,6 +26,7 @@ createInstance(MenuWorkbenchToolBar, { //// [cachedContextualTypes.js] "use strict"; +// Repro from #52198 Object.defineProperty(exports, "__esModule", { value: true }); class MenuWorkbenchToolBar { constructor(options) { } diff --git a/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js.diff b/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js.diff deleted file mode 100644 index 6236676ccd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedContextualTypes.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.cachedContextualTypes.js -+++ new.cachedContextualTypes.js -@@= skipped -25, +25 lines =@@ - - //// [cachedContextualTypes.js] - "use strict"; --// Repro from #52198 - Object.defineProperty(exports, "__esModule", { value: true }); - class MenuWorkbenchToolBar { - constructor(options) { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js index 9d5385bd49..d54c2d7666 100644 --- a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js +++ b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js @@ -20,6 +20,8 @@ values = values2; //// [checkInfiniteExpansionTermination.js] +// Regression test for #1002 +// Before fix this code would cause infinite loop var values; var values2; values = values2; diff --git a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js.diff b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js.diff deleted file mode 100644 index a144218a54..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.checkInfiniteExpansionTermination.js -+++ new.checkInfiniteExpansionTermination.js -@@= skipped -19, +19 lines =@@ - - - //// [checkInfiniteExpansionTermination.js] --// Regression test for #1002 --// Before fix this code would cause infinite loop - var values; - var values2; - values = values2; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js index c442b12a44..9726e78404 100644 --- a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js +++ b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js @@ -20,6 +20,8 @@ function fn() { //// [checkInfiniteExpansionTermination2.js] +// Regression test for #1002 +// Before fix this code would cause infinite loop function fn() { var values = []; // Hang when using , but not diff --git a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js.diff b/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js.diff deleted file mode 100644 index 77a7641e48..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkInfiniteExpansionTermination2.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.checkInfiniteExpansionTermination2.js -+++ new.checkInfiniteExpansionTermination2.js -@@= skipped -19, +19 lines =@@ - - - //// [checkInfiniteExpansionTermination2.js] --// Regression test for #1002 --// Before fix this code would cause infinite loop - function fn() { - var values = []; - // Hang when using , but not \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js index 0a413dc368..6bf89996a4 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js @@ -20,12 +20,12 @@ a; //// [checkJsdocTypeTagOnExportAssignment1.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {Object} Foo * @property {boolean} a * @property {boolean} b */ +Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ exports.default = { c: false }; //// [b.js] diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff index cb001a666b..962b43db5d 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment1.js.diff @@ -1,18 +1,6 @@ --- old.checkJsdocTypeTagOnExportAssignment1.js +++ new.checkJsdocTypeTagOnExportAssignment1.js -@@= skipped -19, +19 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment1.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {Object} Foo - * @property {boolean} a - * @property {boolean} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - /** @type {Foo} */ - exports.default = { c: false }; +@@= skipped -30, +30 lines =@@ //// [b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js index 6bf97fedfe..6205b8fe2e 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js @@ -22,12 +22,12 @@ a; //// [checkJsdocTypeTagOnExportAssignment3.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {Object} Foo * @property {boolean} a * @property {boolean} b */ +Object.defineProperty(exports, "__esModule", { value: true }); const bar = { c: 1 }; /** @type {Foo} */ exports.default = bar; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff index fc0499aae9..df954aac94 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment3.js.diff @@ -1,19 +1,6 @@ --- old.checkJsdocTypeTagOnExportAssignment3.js +++ new.checkJsdocTypeTagOnExportAssignment3.js -@@= skipped -21, +21 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment3.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {Object} Foo - * @property {boolean} a - * @property {boolean} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - const bar = { c: 1 }; - /** @type {Foo} */ - exports.default = bar; +@@= skipped -33, +33 lines =@@ //// [b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js index a4067800e7..3e280248f4 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js @@ -15,9 +15,9 @@ export default ""; //// [checkJsdocTypeTagOnExportAssignment4.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {number} Foo */ +Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ exports.default = ""; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js.diff deleted file mode 100644 index aa2903966c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment4.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.checkJsdocTypeTagOnExportAssignment4.js -+++ new.checkJsdocTypeTagOnExportAssignment4.js -@@= skipped -14, +14 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment4.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {number} Foo - */ --Object.defineProperty(exports, "__esModule", { value: true }); - /** @type {Foo} */ - exports.default = ""; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js index bd15e36ff4..25a7b3dae7 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js @@ -20,12 +20,12 @@ a; //// [checkJsdocTypeTagOnExportAssignment5.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ +Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ exports.default = { a: 1, b: 1 }; //// [b.js] diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff index 280223a9e8..b7331afe3b 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment5.js.diff @@ -1,18 +1,6 @@ --- old.checkJsdocTypeTagOnExportAssignment5.js +++ new.checkJsdocTypeTagOnExportAssignment5.js -@@= skipped -19, +19 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment5.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {Object} Foo - * @property {number} a - * @property {number} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - /** @type {Foo} */ - exports.default = { a: 1, b: 1 }; +@@= skipped -30, +30 lines =@@ //// [b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js index e2b514d833..7dce488e36 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js @@ -20,12 +20,12 @@ a; //// [checkJsdocTypeTagOnExportAssignment6.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ +Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ exports.default = { a: 1, b: 1, c: 1 }; //// [b.js] diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff index 57ee0893a0..93ac1ae858 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment6.js.diff @@ -1,18 +1,6 @@ --- old.checkJsdocTypeTagOnExportAssignment6.js +++ new.checkJsdocTypeTagOnExportAssignment6.js -@@= skipped -19, +19 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment6.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {Object} Foo - * @property {number} a - * @property {number} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - /** @type {Foo} */ - exports.default = { a: 1, b: 1, c: 1 }; +@@= skipped -30, +30 lines =@@ //// [b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js index 481aeef891..2c00033c88 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js @@ -22,12 +22,12 @@ a; //// [checkJsdocTypeTagOnExportAssignment7.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef {Object} Foo * @property {number} a * @property {number} b */ +Object.defineProperty(exports, "__esModule", { value: true }); const abc = { a: 1, b: 1, c: 1 }; /** @type {Foo} */ exports.default = abc; diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff index d61e82ff4d..852115e2a2 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment7.js.diff @@ -1,19 +1,6 @@ --- old.checkJsdocTypeTagOnExportAssignment7.js +++ new.checkJsdocTypeTagOnExportAssignment7.js -@@= skipped -21, +21 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment7.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef {Object} Foo - * @property {number} a - * @property {number} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - const abc = { a: 1, b: 1, c: 1 }; - /** @type {Foo} */ - exports.default = abc; +@@= skipped -33, +33 lines =@@ //// [b.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js index a13517d674..b63560b276 100644 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js +++ b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js @@ -19,12 +19,12 @@ export default { //// [checkJsdocTypeTagOnExportAssignment8.js] //// [a.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef Foo * @property {string} a * @property {'b'} b */ +Object.defineProperty(exports, "__esModule", { value: true }); /** @type {Foo} */ exports.default = { a: 'a', diff --git a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js.diff b/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js.diff deleted file mode 100644 index f6124fcb3a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/checkJsdocTypeTagOnExportAssignment8.js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.checkJsdocTypeTagOnExportAssignment8.js -+++ new.checkJsdocTypeTagOnExportAssignment8.js -@@= skipped -18, +18 lines =@@ - //// [checkJsdocTypeTagOnExportAssignment8.js] - //// [a.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); - /** - * @typedef Foo - * @property {string} a - * @property {'b'} b - */ --Object.defineProperty(exports, "__esModule", { value: true }); - /** @type {Foo} */ - exports.default = { - a: 'a', \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js b/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js index 32ab8f146f..e0eb73f9c1 100644 --- a/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js +++ b/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js @@ -20,6 +20,7 @@ interface Y extends X { //// [circularBaseTypes.js] +// Repro from #38098 ; // Error function f(m) { return m.value; diff --git a/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js.diff b/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js.diff index f11e8e382f..91342e2fd8 100644 --- a/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/circularBaseTypes.js.diff @@ -5,7 +5,6 @@ //// [circularBaseTypes.js] -"use strict"; --// Repro from #38098 + // Repro from #38098 ; // Error - function f(m) { - return m.value; \ No newline at end of file + function f(m) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js b/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js index 6b54aece8e..192219fc76 100644 --- a/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js +++ b/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js @@ -22,6 +22,7 @@ class Foo { //// [classVarianceResolveCircularity2.js] "use strict"; +// Issue #52813 Object.defineProperty(exports, "__esModule", { value: true }); class Bar { num; diff --git a/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js.diff b/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js.diff index 46edd29106..5d873414fc 100644 --- a/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/classVarianceResolveCircularity2.js.diff @@ -1,10 +1,7 @@ --- old.classVarianceResolveCircularity2.js +++ new.classVarianceResolveCircularity2.js -@@= skipped -21, +21 lines =@@ - - //// [classVarianceResolveCircularity2.js] - "use strict"; --// Issue #52813 +@@= skipped -24, +24 lines =@@ + // Issue #52813 Object.defineProperty(exports, "__esModule", { value: true }); class Bar { - constructor() { diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js b/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js index 4733da1abc..9837da4c37 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js @@ -20,5 +20,9 @@ declare class E extends C { } //// [a.js] +/*!========= + Keep this pinned comment + ========= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js.diff deleted file mode 100644 index 87a1fe8499..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientClass1.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnAmbientClass1.js -+++ new.commentOnAmbientClass1.js -@@= skipped -19, +19 lines =@@ - } - - //// [a.js] --/*!========= -- Keep this pinned comment -- ========= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js b/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js index c95f0fc511..f6c9d92ebf 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js @@ -23,5 +23,9 @@ declare enum E { } //// [a.js] +/*!========= + Keep this pinned comment + ========= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js.diff deleted file mode 100644 index 8f095b3b11..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientEnum.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnAmbientEnum.js -+++ new.commentOnAmbientEnum.js -@@= skipped -22, +22 lines =@@ - } - - //// [a.js] --/*!========= -- Keep this pinned comment -- ========= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js b/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js index 921318e96a..2d43b502f2 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js @@ -25,5 +25,9 @@ declare module E { } //// [a.js] +/*!========= + Keep this pinned comment + ========= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js.diff deleted file mode 100644 index 8b147b4f4a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientModule.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnAmbientModule.js -+++ new.commentOnAmbientModule.js -@@= skipped -24, +24 lines =@@ - } - - //// [a.js] --/*!========= -- Keep this pinned comment -- ========= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js b/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js index 493a0cb7e8..5220f0f1b0 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js @@ -13,3 +13,7 @@ declare var v: number; declare var y: number; //// [commentOnAmbientVariable1.js] +/*!========= + Keep this pinned comment + ========= +*/ diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js.diff deleted file mode 100644 index acf7a59f1e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientVariable1.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.commentOnAmbientVariable1.js -+++ new.commentOnAmbientVariable1.js -@@= skipped -12, +12 lines =@@ - declare var y: number; - - //// [commentOnAmbientVariable1.js] --/*!========= -- Keep this pinned comment -- ========= --*/ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js b/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js index 52a825d649..2261323694 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js @@ -17,5 +17,9 @@ declare function bar(); declare function foobar(a: typeof foo): typeof bar; //// [a.js] +/*!========= + Keep this pinned comment + ========= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js.diff deleted file mode 100644 index 55a2349f41..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnAmbientfunction.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnAmbientfunction.js -+++ new.commentOnAmbientfunction.js -@@= skipped -16, +16 lines =@@ - declare function foobar(a: typeof foo): typeof bar; - - //// [a.js] --/*!========= -- Keep this pinned comment -- ========= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js b/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js index 3b7d9b4daf..72585e6a9e 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js @@ -20,5 +20,9 @@ module ElidedModule3 { } //// [a.js] +/*!================= + Keep this pinned + ================= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js.diff deleted file mode 100644 index 861acd202b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnElidedModule1.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnElidedModule1.js -+++ new.commentOnElidedModule1.js -@@= skipped -19, +19 lines =@@ - } - - //// [a.js] --/*!================= -- Keep this pinned -- ================= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js index 6968403a0a..96d1f097e3 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js @@ -8,4 +8,5 @@ import foo = require('./foo'); //// [commentOnImportStatement3.js] "use strict"; +/* copyright */ Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js.diff deleted file mode 100644 index 1dcd831942..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnImportStatement3.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.commentOnImportStatement3.js -+++ new.commentOnImportStatement3.js -@@= skipped -7, +7 lines =@@ - - //// [commentOnImportStatement3.js] - "use strict"; --/* copyright */ - Object.defineProperty(exports, "__esModule", { value: true }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js b/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js index c80760d1e9..c51658e2df 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js @@ -20,5 +20,9 @@ interface I3 { } //// [a.js] +/*!================= + Keep this pinned + ================= +*/ //// [b.js] /// diff --git a/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js.diff deleted file mode 100644 index 44a1d8f99c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnInterface1.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.commentOnInterface1.js -+++ new.commentOnInterface1.js -@@= skipped -19, +19 lines =@@ - } - - //// [a.js] --/*!================= -- Keep this pinned -- ================= --*/ - //// [b.js] - /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js b/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js index 63845a5bd0..637e3b25b9 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js @@ -38,6 +38,10 @@ function foo2(a: any): void { } //// [a.js] +/*!================= + Keep this pinned + ================= +*/ function foo(a) { } class c { diff --git a/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js.diff deleted file mode 100644 index bb4c48fea0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnSignature1.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.commentOnSignature1.js -+++ new.commentOnSignature1.js -@@= skipped -37, +37 lines =@@ - } - - //// [a.js] --/*!================= -- Keep this pinned -- ================= --*/ - function foo(a) { - } - class c { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js b/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js index 7c8e9a8c04..a19ad80982 100644 --- a/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js +++ b/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js @@ -10,9 +10,9 @@ export class SomeAutoGeneratedThing {} //// [commentWithUnreasonableIndentationLevel01.js] "use strict"; +// Repro from #41223 Object.defineProperty(exports, "__esModule", { value: true }); exports.SomeAutoGeneratedThing = void 0; -// Repro from #41223 /** * This is a comment with dumb indentation for some auto-generated thing. */ diff --git a/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js.diff b/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js.diff deleted file mode 100644 index 0392624fbc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/commentWithUnreasonableIndentationLevel01.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.commentWithUnreasonableIndentationLevel01.js -+++ new.commentWithUnreasonableIndentationLevel01.js -@@= skipped -9, +9 lines =@@ - - //// [commentWithUnreasonableIndentationLevel01.js] - "use strict"; --// Repro from #41223 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SomeAutoGeneratedThing = void 0; -+// Repro from #41223 - /** - * This is a comment with dumb indentation for some auto-generated thing. - */ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js b/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js index 4bfa399af9..a6142ff0ec 100644 --- a/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js +++ b/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js @@ -563,9 +563,9 @@ export function viewFactory_AppComponent0(viewUtils:any,parentInjector:any,decla //// [complexNarrowingWithAny.js] "use strict"; +// Repro from #10869 Object.defineProperty(exports, "__esModule", { value: true }); exports.viewFactory_AppComponent0 = viewFactory_AppComponent0; -// Repro from #10869 /** * This file is generated by the Angular 2 template compiler. * Do not edit. diff --git a/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js.diff b/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js.diff index 07df85e517..62ebb990bc 100644 --- a/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js.diff +++ b/testdata/baselines/reference/submodule/compiler/complexNarrowingWithAny.js.diff @@ -1,17 +1,6 @@ --- old.complexNarrowingWithAny.js +++ new.complexNarrowingWithAny.js -@@= skipped -562, +562 lines =@@ - - //// [complexNarrowingWithAny.js] - "use strict"; --// Repro from #10869 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.viewFactory_AppComponent0 = viewFactory_AppComponent0; -+// Repro from #10869 - /** - * This file is generated by the Angular 2 template compiler. - * Do not edit. -@@= skipped -130, +130 lines =@@ +@@= skipped -692, +692 lines =@@ import51.ControlContainer = ControlContainer; })(import51 || (import51 = {})); class _View_AppComponent0 { diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js b/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js index 5bc77ce228..6afd67dd25 100644 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js +++ b/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js @@ -10,3 +10,4 @@ type WithSpec = T type R = WithSpec // should not error //// [conditionalTypeAnyUnion.js] +// repro from #52568 diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js.diff b/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js.diff deleted file mode 100644 index 77c26d5e6a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeAnyUnion.js.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.conditionalTypeAnyUnion.js -+++ new.conditionalTypeAnyUnion.js -@@= skipped -9, +9 lines =@@ - type R = WithSpec // should not error - - //// [conditionalTypeAnyUnion.js] --// repro from #52568 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js b/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js index 5a1a9a3a72..7bd8d8ae64 100644 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js +++ b/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js @@ -121,9 +121,9 @@ export enum PubSubRecordIsStoredInRedisAsA { const PubSubRecordType = buildPubSubRecordType({}); //// [conditionalTypeDoesntSpinForever.js] -export { PubSubRecordIsStoredInRedisAsA }; // A *self-contained* demonstration of the problem follows... // Test this by running `tsc --target es6` on the command-line, rather than through another build tool such as Gulp, Webpack, etc. +export { PubSubRecordIsStoredInRedisAsA }; var PubSubRecordIsStoredInRedisAsA; (function (PubSubRecordIsStoredInRedisAsA) { PubSubRecordIsStoredInRedisAsA["redisHash"] = "redisHash"; diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js.diff b/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js.diff index be33872f0c..849909b8f9 100644 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js.diff +++ b/testdata/baselines/reference/submodule/compiler/conditionalTypeDoesntSpinForever.js.diff @@ -1,13 +1,11 @@ --- old.conditionalTypeDoesntSpinForever.js +++ new.conditionalTypeDoesntSpinForever.js -@@= skipped -120, +120 lines =@@ - const PubSubRecordType = buildPubSubRecordType({}); - +@@= skipped -122, +122 lines =@@ //// [conditionalTypeDoesntSpinForever.js] -+export { PubSubRecordIsStoredInRedisAsA }; // A *self-contained* demonstration of the problem follows... // Test this by running `tsc --target es6` on the command-line, rather than through another build tool such as Gulp, Webpack, etc. -export var PubSubRecordIsStoredInRedisAsA; ++export { PubSubRecordIsStoredInRedisAsA }; +var PubSubRecordIsStoredInRedisAsA; (function (PubSubRecordIsStoredInRedisAsA) { PubSubRecordIsStoredInRedisAsA["redisHash"] = "redisHash"; diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js b/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js index 0b6beefa7d..611917d268 100644 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js +++ b/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js @@ -14,3 +14,4 @@ interface AnySchemaType, V> extends AbstractS //// [conditionalTypeSimplification.js] +// Repro from #30794 diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js.diff b/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js.diff deleted file mode 100644 index ff19785ecc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypeSimplification.js.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.conditionalTypeSimplification.js -+++ new.conditionalTypeSimplification.js -@@= skipped -13, +13 lines =@@ - - - //// [conditionalTypeSimplification.js] --// Repro from #30794 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js b/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js index bd47ca6308..cc958056c2 100644 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js +++ b/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js @@ -10,6 +10,7 @@ interface JSONSchema4 { //// [conditionalTypesASI.js] +// Repro from #21637 //// [conditionalTypesASI.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js.diff b/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js.diff deleted file mode 100644 index 51579daebe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/conditionalTypesASI.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.conditionalTypesASI.js -+++ new.conditionalTypesASI.js -@@= skipped -9, +9 lines =@@ - - - //// [conditionalTypesASI.js] --// Repro from #21637 - - - //// [conditionalTypesASI.d.ts] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js b/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js index 92c53c8d92..f511bb55b1 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js +++ b/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js @@ -38,9 +38,9 @@ class Item extends BaseClass { //// [conflictingTypeParameterSymbolTransfer.js] "use strict"; +// @strict Object.defineProperty(exports, "__esModule", { value: true }); exports.C2 = void 0; -// @strict // Via #56620 class Base { } diff --git a/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js.diff b/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js.diff index a9203fd8cd..81a3b724a3 100644 --- a/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js.diff +++ b/testdata/baselines/reference/submodule/compiler/conflictingTypeParameterSymbolTransfer.js.diff @@ -1,14 +1,6 @@ --- old.conflictingTypeParameterSymbolTransfer.js +++ new.conflictingTypeParameterSymbolTransfer.js -@@= skipped -37, +37 lines =@@ - - //// [conflictingTypeParameterSymbolTransfer.js] - "use strict"; --// @strict - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C2 = void 0; -+// @strict - // Via #56620 +@@= skipped -44, +44 lines =@@ class Base { } class C2 extends Base { @@ -16,7 +8,7 @@ constructor(T) { super(); // Should not error -@@= skipped -20, +21 lines =@@ +@@= skipped -13, +14 lines =@@ class Leg { } class Foo extends Leg { diff --git a/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js b/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js index f23204a27f..9e3fd4f274 100644 --- a/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js +++ b/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js @@ -43,6 +43,9 @@ function mixed4(x: Record<'a', T>, y: Record2) { //// [consistentAliasVsNonAliasRecordBehavior.js] +// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being +// by incorrect variance-based relationships +// Ref: https://github.com/Microsoft/TypeScript/issues/29698 function defaultRecord(x, y) { x = y; // no error, but error expected. } diff --git a/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js.diff b/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js.diff deleted file mode 100644 index 58122a9e9e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/consistentAliasVsNonAliasRecordBehavior.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.consistentAliasVsNonAliasRecordBehavior.js -+++ new.consistentAliasVsNonAliasRecordBehavior.js -@@= skipped -42, +42 lines =@@ - - - //// [consistentAliasVsNonAliasRecordBehavior.js] --// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being --// by incorrect variance-based relationships --// Ref: https://github.com/Microsoft/TypeScript/issues/29698 - function defaultRecord(x, y) { - x = y; // no error, but error expected. - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constWithNonNull.js b/testdata/baselines/reference/submodule/compiler/constWithNonNull.js index d8c2c37962..6cf38ad519 100644 --- a/testdata/baselines/reference/submodule/compiler/constWithNonNull.js +++ b/testdata/baselines/reference/submodule/compiler/constWithNonNull.js @@ -8,4 +8,5 @@ x!++; //// [constWithNonNull.js] +// Fixes #21848 x++; diff --git a/testdata/baselines/reference/submodule/compiler/constWithNonNull.js.diff b/testdata/baselines/reference/submodule/compiler/constWithNonNull.js.diff deleted file mode 100644 index 5cfb298b89..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constWithNonNull.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.constWithNonNull.js -+++ new.constWithNonNull.js -@@= skipped -7, +7 lines =@@ - - - //// [constWithNonNull.js] --// Fixes #21848 - x++; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constraintOfRecursivelyMappedTypeWithConditionalIsResolvable.js b/testdata/baselines/reference/submodule/compiler/constraintOfRecursivelyMappedTypeWithConditionalIsResolvable.js index 434ab25a15..d7c43c002a 100644 --- a/testdata/baselines/reference/submodule/compiler/constraintOfRecursivelyMappedTypeWithConditionalIsResolvable.js +++ b/testdata/baselines/reference/submodule/compiler/constraintOfRecursivelyMappedTypeWithConditionalIsResolvable.js @@ -25,4 +25,5 @@ export interface IImmutableMap2> extends Map(v: V) => void>() { //// [constraintReferencingTypeParameterFromSameTypeParameterList.js] +// used to be valid, now an error to do this function f() { } function foo() { diff --git a/testdata/baselines/reference/submodule/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.js.diff b/testdata/baselines/reference/submodule/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.js.diff deleted file mode 100644 index b0ad009519..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.constraintReferencingTypeParameterFromSameTypeParameterList.js -+++ new.constraintReferencingTypeParameterFromSameTypeParameterList.js -@@= skipped -26, +26 lines =@@ - - - //// [constraintReferencingTypeParameterFromSameTypeParameterList.js] --// used to be valid, now an error to do this - function f() { - } - function foo() { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js b/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js index 418ea01336..359b24a27d 100644 --- a/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js +++ b/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js @@ -60,6 +60,7 @@ test( //// [contextSensitiveReturnTypeInference.js] +// Repro from #34849 const DEPS = { foo: 1 }; diff --git a/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js.diff b/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js.diff index e92610a536..440bae3f6c 100644 --- a/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js.diff +++ b/testdata/baselines/reference/submodule/compiler/contextSensitiveReturnTypeInference.js.diff @@ -5,7 +5,6 @@ //// [contextSensitiveReturnTypeInference.js] -"use strict"; --// Repro from #34849 + // Repro from #34849 const DEPS = { - foo: 1 - }; \ No newline at end of file + foo: 1 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js b/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js index 73c02a4083..1c6a523b6e 100644 --- a/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js +++ b/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js @@ -8,4 +8,5 @@ f({ data: 0 }, { data(value, key) {} }); //// [contextualPropertyOfGenericMappedType.js] +// Repro for #24694 f({ data: 0 }, { data(value, key) { } }); diff --git a/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js.diff b/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js.diff deleted file mode 100644 index b79e469d24..0000000000 --- a/testdata/baselines/reference/submodule/compiler/contextualPropertyOfGenericMappedType.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.contextualPropertyOfGenericMappedType.js -+++ new.contextualPropertyOfGenericMappedType.js -@@= skipped -7, +7 lines =@@ - - - //// [contextualPropertyOfGenericMappedType.js] --// Repro for #24694 - f({ data: 0 }, { data(value, key) { } }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js b/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js index a52165a583..3cd8546ba0 100644 --- a/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js +++ b/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js @@ -22,6 +22,7 @@ const banana5 = fruitFactory5(Banana) // Banana<"foo"> //// [contextualSignatureInstantiation4.js] +// Repros from #32976 const banana1 = fruitFactory1(Banana); // Banana const banana2 = fruitFactory2(Banana); // Banana const banana3 = fruitFactory3(Banana); // Banana<"foo"> diff --git a/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js.diff b/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js.diff index be8fb6e1e8..ad3e9202f3 100644 --- a/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/contextualSignatureInstantiation4.js.diff @@ -5,7 +5,6 @@ //// [contextualSignatureInstantiation4.js] -"use strict"; --// Repros from #32976 + // Repros from #32976 const banana1 = fruitFactory1(Banana); // Banana - const banana2 = fruitFactory2(Banana); // Banana - const banana3 = fruitFactory3(Banana); // Banana<"foo"> \ No newline at end of file + const banana2 = fruitFactory2(Banana); // Banana \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js b/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js index 496cc2c0d8..9d496e8aef 100644 --- a/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js +++ b/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js @@ -30,6 +30,7 @@ const x: Observable = observable(false); //// [contextuallyTypedBooleanLiterals.js] +// Repro from #48363 const bn1 = box(0); // Box const bn2 = box(0); // Ok const bb1 = box(false); // Box diff --git a/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js.diff b/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js.diff index 65bad0af4d..82fa29fe9f 100644 --- a/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js.diff +++ b/testdata/baselines/reference/submodule/compiler/contextuallyTypedBooleanLiterals.js.diff @@ -5,7 +5,6 @@ //// [contextuallyTypedBooleanLiterals.js] -"use strict"; --// Repro from #48363 + // Repro from #48363 const bn1 = box(0); // Box - const bn2 = box(0); // Ok - const bb1 = box(false); // Box \ No newline at end of file + const bn2 = box(0); // Ok \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js b/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js index 6c3d9fe7d5..9bcb86269a 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js +++ b/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js @@ -25,6 +25,7 @@ function foo(things: Val[]): void { } //// [controlFlowDestructuringLoop.js] +// Repro from #28758 function isNumVal(x) { return typeof x.val === 'number'; } diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js.diff b/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js.diff index 69009d6440..a919bc0a4d 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js.diff +++ b/testdata/baselines/reference/submodule/compiler/controlFlowDestructuringLoop.js.diff @@ -5,7 +5,6 @@ //// [controlFlowDestructuringLoop.js] -"use strict"; --// Repro from #28758 + // Repro from #28758 function isNumVal(x) { - return typeof x.val === 'number'; - } \ No newline at end of file + return typeof x.val === 'number'; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js b/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js index 0c2e32cb74..af657b632d 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js +++ b/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js @@ -152,6 +152,7 @@ export class StyleParser { //// [controlFlowPropertyDeclarations.js] "use strict"; +// Repro from ##8913 Object.defineProperty(exports, "__esModule", { value: true }); exports.StyleParser = exports.HTMLtoJSX = void 0; var HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig'); diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js.diff b/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js.diff index c0f009b46e..3efc353dd3 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js.diff +++ b/testdata/baselines/reference/submodule/compiler/controlFlowPropertyDeclarations.js.diff @@ -1,14 +1,6 @@ --- old.controlFlowPropertyDeclarations.js +++ new.controlFlowPropertyDeclarations.js -@@= skipped -151, +151 lines =@@ - - //// [controlFlowPropertyDeclarations.js] - "use strict"; --// Repro from ##8913 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StyleParser = exports.HTMLtoJSX = void 0; - var HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig'); -@@= skipped -87, +86 lines =@@ +@@= skipped -238, +238 lines =@@ return /^\d+px$/.test(value); } class HTMLtoJSX { diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js b/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js index 70cf0436ee..ff82e5c972 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js +++ b/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js @@ -124,8 +124,8 @@ function getObject(id: string | number) { //// [controlFlowSelfReferentialLoop.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); // Repro from #12319 +Object.defineProperty(exports, "__esModule", { value: true }); function md5(string) { function FF(a, b, c, d, x, s, ac) { return 0; diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js.diff b/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js.diff deleted file mode 100644 index 4015bfc679..0000000000 --- a/testdata/baselines/reference/submodule/compiler/controlFlowSelfReferentialLoop.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.controlFlowSelfReferentialLoop.js -+++ new.controlFlowSelfReferentialLoop.js -@@= skipped -123, +123 lines =@@ - - //// [controlFlowSelfReferentialLoop.js] - "use strict"; --// Repro from #12319 - Object.defineProperty(exports, "__esModule", { value: true }); -+// Repro from #12319 - function md5(string) { - function FF(a, b, c, d, x, s, ac) { - return 0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js b/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js index de53bab39f..5c75c3407e 100644 --- a/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js +++ b/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js @@ -30,6 +30,7 @@ function foo2() { } //// [controlFlowWithIncompleteTypes.js] +// Repro from #11000 function foo1() { let x = 0; while (cond) { diff --git a/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js.diff b/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js.diff deleted file mode 100644 index 6e1c290db9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/controlFlowWithIncompleteTypes.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.controlFlowWithIncompleteTypes.js -+++ new.controlFlowWithIncompleteTypes.js -@@= skipped -29, +29 lines =@@ - } - - //// [controlFlowWithIncompleteTypes.js] --// Repro from #11000 - function foo1() { - let x = 0; - while (cond) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/correlatedUnions.js b/testdata/baselines/reference/submodule/compiler/correlatedUnions.js index f28acd85d2..60b89f2fb3 100644 --- a/testdata/baselines/reference/submodule/compiler/correlatedUnions.js +++ b/testdata/baselines/reference/submodule/compiler/correlatedUnions.js @@ -304,6 +304,7 @@ function getValueConcrete( //// [correlatedUnions.js] +// Various repros from #30581 function processRecord(rec) { rec.f(rec.v); } diff --git a/testdata/baselines/reference/submodule/compiler/correlatedUnions.js.diff b/testdata/baselines/reference/submodule/compiler/correlatedUnions.js.diff index 8e046ca39f..6e2c376340 100644 --- a/testdata/baselines/reference/submodule/compiler/correlatedUnions.js.diff +++ b/testdata/baselines/reference/submodule/compiler/correlatedUnions.js.diff @@ -5,11 +5,10 @@ //// [correlatedUnions.js] -"use strict"; --// Various repros from #30581 + // Various repros from #30581 function processRecord(rec) { rec.f(rec.v); - } -@@= skipped -214, +212 lines =@@ +@@= skipped -214, +213 lines =@@ declare function createEventListener({ name, once, callback }: Ev): Ev; declare const clickEvent: { readonly name: "click"; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js index f731d32e3b..66ac428f74 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js @@ -42,6 +42,9 @@ export function fnWithPartialAnnotationOnDefaultparam(x = /** @type {P} */(somet //// [input.d.ts] +/** + * @typedef {{ } & { name?: string }} P + */ export type P = {} & { name?: string; }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js.diff index 3ce20e95ee..66f8165e97 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=false).js.diff @@ -5,6 +5,9 @@ //// [input.d.ts] -export function fn(p?: P): void; ++/** ++ * @typedef {{ } & { name?: string }} P ++ */ +export type P = {} & { + name?: string; +}; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js index 9e50d3792c..f2e51184e5 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js @@ -42,6 +42,9 @@ export function fnWithPartialAnnotationOnDefaultparam(x = /** @type {P} */(somet //// [input.d.ts] +/** + * @typedef {{ } & { name?: string }} P + */ export type P = {} & { name?: string; }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js.diff index ae201f753b..db186c93e4 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitCastReusesTypeNode4(strictnullchecks=true).js.diff @@ -5,6 +5,9 @@ //// [input.d.ts] -export function fn(p?: P): void; ++/** ++ * @typedef {{ } & { name?: string }} P ++ */ +export type P = {} & { + name?: string; +}; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js b/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js index d44b34946b..0c6b49eb4a 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js @@ -32,6 +32,7 @@ class Hola { //// [test1.js] +/*! Copyright 2015 MyCompany Inc. */ class Hello { } //// [test2.js] @@ -43,6 +44,7 @@ class Hola { //// [test1.d.ts] +/*! Copyright 2015 MyCompany Inc. */ declare class Hello { } //// [test2.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js.diff deleted file mode 100644 index 702fedbaa6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitDetachedComment2.js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.declarationEmitDetachedComment2.js -+++ new.declarationEmitDetachedComment2.js -@@= skipped -31, +31 lines =@@ - - - //// [test1.js] --/*! Copyright 2015 MyCompany Inc. */ - class Hello { - } - //// [test2.js] -@@= skipped -12, +11 lines =@@ - - - //// [test1.d.ts] --/*! Copyright 2015 MyCompany Inc. */ - declare class Hello { - } - //// [test2.d.ts] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js b/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js index 2fe741d288..cdfdfdad11 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js @@ -7,9 +7,9 @@ export let b = [{ foo: 0, m() {} }, { bar: 1 }]; //// [declarationEmitInferredUndefinedPropFromFunctionInArray.js] "use strict"; +// repro from https://github.com/microsoft/TypeScript/issues/53914 Object.defineProperty(exports, "__esModule", { value: true }); exports.b = void 0; -// repro from https://github.com/microsoft/TypeScript/issues/53914 exports.b = [{ foo: 0, m() { } }, { bar: 1 }]; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js.diff deleted file mode 100644 index 7d4aec176a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.declarationEmitInferredUndefinedPropFromFunctionInArray.js -+++ new.declarationEmitInferredUndefinedPropFromFunctionInArray.js -@@= skipped -6, +6 lines =@@ - - //// [declarationEmitInferredUndefinedPropFromFunctionInArray.js] - "use strict"; --// repro from https://github.com/microsoft/TypeScript/issues/53914 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; -+// repro from https://github.com/microsoft/TypeScript/issues/53914 - exports.b = [{ foo: 0, m() { } }, { bar: 1 }]; - diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js index 43466056a4..3d0bd7dd79 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js @@ -62,6 +62,7 @@ export const entriesOf = (o: o) => //// [declarationEmitMappedTypePreservesTypeParameterConstraint.js] "use strict"; +// repro from https://github.com/microsoft/TypeScript/issues/54560 Object.defineProperty(exports, "__esModule", { value: true }); exports.entriesOf = exports.buildSchema = void 0; const buildSchema = (version) => (({})); diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff index 90819e98d3..6e0f495e0e 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff @@ -1,10 +1,7 @@ --- old.declarationEmitMappedTypePreservesTypeParameterConstraint.js +++ new.declarationEmitMappedTypePreservesTypeParameterConstraint.js -@@= skipped -61, +61 lines =@@ - - //// [declarationEmitMappedTypePreservesTypeParameterConstraint.js] - "use strict"; --// repro from https://github.com/microsoft/TypeScript/issues/54560 +@@= skipped -64, +64 lines =@@ + // repro from https://github.com/microsoft/TypeScript/issues/54560 Object.defineProperty(exports, "__esModule", { value: true }); exports.entriesOf = exports.buildSchema = void 0; -const buildSchema = (version) => ({}); @@ -12,7 +9,7 @@ exports.buildSchema = buildSchema; const entriesOf = (o) => Object.entries(o); exports.entriesOf = entriesOf; -@@= skipped -31, +30 lines =@@ +@@= skipped -28, +28 lines =@@ export declare type ZodRawShape = { [k: string]: ZodTypeAny; }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js b/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js index bf75d38e5a..618990a5f9 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js +++ b/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js @@ -44,6 +44,8 @@ void p3.result.three; //// [declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js] "use strict"; +// Note that both of the following have an `any` in their return type from where we bottom out the type printout +// for having too many instances of the same symbol nesting. var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { diff --git a/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js.diff b/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js.diff deleted file mode 100644 index 936f834eeb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js -+++ new.declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js -@@= skipped -43, +43 lines =@@ - - //// [declarationsWithRecursiveInternalTypesProduceUniqueTypeParams.js] - "use strict"; --// Note that both of the following have an `any` in their return type from where we bottom out the type printout --// for having too many instances of the same symbol nesting. - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js b/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js index 5b71459dcb..44abeb067c 100644 --- a/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js +++ b/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js @@ -57,6 +57,7 @@ const a2: string[][][][][][][][][][] = [[[[[[[[[[42]]]]]]]]]]; //// [deeplyNestedCheck.js] +// Repro from #14794 const x = { b: [ { diff --git a/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js.diff b/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js.diff index 28297b816c..7ed38e2061 100644 --- a/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js.diff +++ b/testdata/baselines/reference/submodule/compiler/deeplyNestedCheck.js.diff @@ -1,14 +1,6 @@ --- old.deeplyNestedCheck.js +++ new.deeplyNestedCheck.js -@@= skipped -56, +56 lines =@@ - - - //// [deeplyNestedCheck.js] --// Repro from #14794 - const x = { - b: [ - { -@@= skipped -13, +12 lines =@@ +@@= skipped -69, +69 lines =@@ { g: { h: [ diff --git a/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js b/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js index a8e4d07c86..34078a0951 100644 --- a/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js @@ -15,6 +15,7 @@ class BufferPool> { //// [deeplyNestedConstraints.js] +// Repro from #41931 class BufferPool { setArray2(_, array) { array.length; // Requires exploration of >5 levels of constraints diff --git a/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js.diff index aa5c1605a1..8c82df9c5c 100644 --- a/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js.diff +++ b/testdata/baselines/reference/submodule/compiler/deeplyNestedConstraints.js.diff @@ -5,7 +5,6 @@ //// [deeplyNestedConstraints.js] -"use strict"; --// Repro from #41931 + // Repro from #41931 class BufferPool { - setArray2(_, array) { - array.length; // Requires exploration of >5 levels of constraints \ No newline at end of file + setArray2(_, array) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js index 8edd173c99..274f717191 100644 --- a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js +++ b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js @@ -29,6 +29,7 @@ function f3(x: 'a' | 'b') { //// [deferredLookupTypeResolution.js] +// Repro from #17456 function f2(a) { return f1(a, 'x'); } diff --git a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js.diff b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js.diff index 4d447e3693..477a00692a 100644 --- a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js.diff +++ b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution.js.diff @@ -5,7 +5,6 @@ //// [deferredLookupTypeResolution.js] -"use strict"; --// Repro from #17456 + // Repro from #17456 function f2(a) { - return f1(a, 'x'); - } \ No newline at end of file + return f1(a, 'x'); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js index 791854dd9a..50f3bff36d 100644 --- a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js +++ b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js @@ -25,6 +25,7 @@ type DeepOK = { true: 'true', otherwise: 'false' }[Juxtapose]; //// [deferredLookupTypeResolution2.js] +// Repro from #17456 //// [deferredLookupTypeResolution2.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js.diff b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js.diff index 7401b3875d..437c24328f 100644 --- a/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/deferredLookupTypeResolution2.js.diff @@ -5,7 +5,5 @@ //// [deferredLookupTypeResolution2.js] -"use strict"; --// Repro from #17456 + // Repro from #17456 - - //// [deferredLookupTypeResolution2.d.ts] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js b/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js index 0d9113f0c0..dada973102 100644 --- a/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js +++ b/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js @@ -14,6 +14,7 @@ function foo

(props: Readonly

) { //// [destructuringWithConstraint.js] +// Repro from #22823 function foo(props) { let { foo = false } = props; if (foo === true) { } diff --git a/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js.diff b/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js.diff index 7fc47b688a..6c6c57ce24 100644 --- a/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js.diff +++ b/testdata/baselines/reference/submodule/compiler/destructuringWithConstraint.js.diff @@ -5,7 +5,6 @@ //// [destructuringWithConstraint.js] -"use strict"; --// Repro from #22823 + // Repro from #22823 function foo(props) { - let { foo = false } = props; - if (foo === true) { } \ No newline at end of file + let { foo = false } = props; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js b/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js index 86bcb2df27..404d7e797c 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js +++ b/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js @@ -42,6 +42,7 @@ f({ //// [discriminantPropertyInference.js] +// Repro from #41759 // simple inference f({ disc: true, diff --git a/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js.diff b/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js.diff deleted file mode 100644 index 002fbe8bab..0000000000 --- a/testdata/baselines/reference/submodule/compiler/discriminantPropertyInference.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.discriminantPropertyInference.js -+++ new.discriminantPropertyInference.js -@@= skipped -41, +41 lines =@@ - - - //// [discriminantPropertyInference.js] --// Repro from #41759 - // simple inference - f({ - disc: true, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js b/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js index e2bba7fed0..5dbe68cd7c 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js +++ b/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js @@ -26,6 +26,7 @@ if (c !== undefined) { } //// [discriminantsAndNullOrUndefined.js] +// Repro from #10228 function never(_) { throw new Error(); } diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js.diff b/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js.diff deleted file mode 100644 index 9d2a710e34..0000000000 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndNullOrUndefined.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.discriminantsAndNullOrUndefined.js -+++ new.discriminantsAndNullOrUndefined.js -@@= skipped -25, +25 lines =@@ - } - - //// [discriminantsAndNullOrUndefined.js] --// Repro from #10228 - function never(_) { - throw new Error(); - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js b/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js index 0e7a9e50b6..db43dd7836 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js +++ b/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js @@ -83,6 +83,7 @@ else { //// [discriminantsAndPrimitives.js] +// Repro from #10257 plus other tests function f1(x) { if (typeof x !== 'string') { switch (x.kind) { diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js.diff b/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js.diff deleted file mode 100644 index f9f7e9b017..0000000000 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndPrimitives.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.discriminantsAndPrimitives.js -+++ new.discriminantsAndPrimitives.js -@@= skipped -82, +82 lines =@@ - - - //// [discriminantsAndPrimitives.js] --// Repro from #10257 plus other tests - function f1(x) { - if (typeof x !== 'string') { - switch (x.kind) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js b/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js index 305b5a0a9f..123d88e4b6 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js +++ b/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js @@ -34,6 +34,7 @@ function foo2(x: A | B): any { } //// [discriminantsAndTypePredicates.js] +// Repro from #10145 function isA(x) { return x.type === 'A'; } function isB(x) { return x.type === 'B'; } function foo1(x) { diff --git a/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js.diff b/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js.diff deleted file mode 100644 index e2266b751b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/discriminantsAndTypePredicates.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.discriminantsAndTypePredicates.js -+++ new.discriminantsAndTypePredicates.js -@@= skipped -33, +33 lines =@@ - } - - //// [discriminantsAndTypePredicates.js] --// Repro from #10145 - function isA(x) { return x.type === 'A'; } - function isB(x) { return x.type === 'B'; } - function foo1(x) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js b/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js index 28b2bd20f1..3bcffa3516 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js +++ b/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js @@ -25,6 +25,7 @@ function ListItem(_data: IListItemData) { //// [discriminatedUnionJsxElement.jsx] +// Repro from #46021 function Menu(data) { var _a; const listItemVariant = (_a = data.menuItemsVariant) !== null && _a !== void 0 ? _a : ListItemVariant.OneLine; diff --git a/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js.diff b/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js.diff index ad545cf227..761ad11f9c 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js.diff +++ b/testdata/baselines/reference/submodule/compiler/discriminatedUnionJsxElement.js.diff @@ -5,7 +5,6 @@ //// [discriminatedUnionJsxElement.jsx] -"use strict"; --// Repro from #46021 + // Repro from #46021 function Menu(data) { - var _a; - const listItemVariant = (_a = data.menuItemsVariant) !== null && _a !== void 0 ? _a : ListItemVariant.OneLine; \ No newline at end of file + var _a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js index 67ad695067..6ba104adb8 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js +++ b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js @@ -23,5 +23,5 @@ export {}; //// [file2.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js.diff b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js.diff index ce53729873..76baf49462 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans6.js.diff @@ -7,6 +7,4 @@ -//// [file1.js] //// [file2.js] "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); -+/// \ No newline at end of file + /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js index 634eac5395..5ca112f999 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js +++ b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js @@ -35,5 +35,5 @@ export {}; //// [file2.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js.diff b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js.diff index 9009fe87ce..a3b62bf462 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicateIdentifierRelatedSpans7.js.diff @@ -7,6 +7,4 @@ -//// [file1.js] //// [file2.js] "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); -+/// \ No newline at end of file + /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js index 39046d4eca..52f49c2d7e 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js @@ -347,6 +347,8 @@ export var tests: TestRunner = (function () { //// [duplicateLocalVariable1.js] "use strict"; +//import FileManager = require('filemanager'); +//import App = require('app'); Object.defineProperty(exports, "__esModule", { value: true }); exports.tests = exports.TestRunner = exports.TestCase = void 0; var TestFileDir = ".\\TempTestFiles"; diff --git a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js.diff b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js.diff index 62371627fa..a7227754cb 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/duplicateLocalVariable1.js.diff @@ -1,12 +1,6 @@ --- old.duplicateLocalVariable1.js +++ new.duplicateLocalVariable1.js -@@= skipped -346, +346 lines =@@ - - //// [duplicateLocalVariable1.js] - "use strict"; --//import FileManager = require('filemanager'); --//import App = require('app'); - Object.defineProperty(exports, "__esModule", { value: true }); +@@= skipped -352, +352 lines =@@ exports.tests = exports.TestRunner = exports.TestCase = void 0; var TestFileDir = ".\\TempTestFiles"; class TestCase { @@ -16,7 +10,7 @@ constructor(name, test, errorMessageRegEx) { this.name = name; this.test = test; -@@= skipped -14, +15 lines =@@ +@@= skipped -8, +11 lines =@@ } exports.TestCase = TestCase; class TestRunner { diff --git a/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js b/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js index 4c61b7d7ba..3999d213aa 100644 --- a/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js +++ b/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js @@ -16,9 +16,9 @@ export const c = { //// [emitMethodCalledNew.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/55075 Object.defineProperty(exports, "__esModule", { value: true }); exports.c = exports.b = exports.a = void 0; -// https://github.com/microsoft/TypeScript/issues/55075 exports.a = { new(x) { return x + 1; } }; diff --git a/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js.diff b/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js.diff deleted file mode 100644 index 3acf938c2e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitMethodCalledNew.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.emitMethodCalledNew.js -+++ new.emitMethodCalledNew.js -@@= skipped -15, +15 lines =@@ - - //// [emitMethodCalledNew.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/55075 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = exports.b = exports.a = void 0; -+// https://github.com/microsoft/TypeScript/issues/55075 - exports.a = { - new(x) { return x + 1; } - }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js b/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js index ca9a87b245..d50c8fc1c4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js +++ b/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js @@ -10,4 +10,9 @@ var x = 10; //// [emitPinnedCommentsOnTopOfFile.js] +/*! + + multi line + comment +*/ var x = 10; diff --git a/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js.diff b/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js.diff deleted file mode 100644 index 268a95d541..0000000000 --- a/testdata/baselines/reference/submodule/compiler/emitPinnedCommentsOnTopOfFile.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.emitPinnedCommentsOnTopOfFile.js -+++ new.emitPinnedCommentsOnTopOfFile.js -@@= skipped -9, +9 lines =@@ - var x = 10; - - //// [emitPinnedCommentsOnTopOfFile.js] --/*! -- -- multi line -- comment --*/ - var x = 10; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/errorElaboration.js b/testdata/baselines/reference/submodule/compiler/errorElaboration.js index 2665c3b3fe..01bb02177c 100644 --- a/testdata/baselines/reference/submodule/compiler/errorElaboration.js +++ b/testdata/baselines/reference/submodule/compiler/errorElaboration.js @@ -27,6 +27,7 @@ const x = ({ [foo.bar]: c }) => undefined; //// [errorElaboration.js] +// Repro for #5712 let a; foo(a); // Repro for #25498 diff --git a/testdata/baselines/reference/submodule/compiler/errorElaboration.js.diff b/testdata/baselines/reference/submodule/compiler/errorElaboration.js.diff deleted file mode 100644 index fea4b6e979..0000000000 --- a/testdata/baselines/reference/submodule/compiler/errorElaboration.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.errorElaboration.js -+++ new.errorElaboration.js -@@= skipped -26, +26 lines =@@ - - - //// [errorElaboration.js] --// Repro for #5712 - let a; - foo(a); - // Repro for #25498 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js index 71125ca7fe..30831ecb96 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js +++ b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js @@ -208,6 +208,7 @@ export * from "class-module"; //// [main.js] "use strict"; +/// var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); diff --git a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff index ae73ab1233..032ba1bf0d 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ExportEqualsInterop.js.diff @@ -1,14 +1,6 @@ --- old.es6ExportEqualsInterop.js +++ new.es6ExportEqualsInterop.js -@@= skipped -207, +207 lines =@@ - - //// [main.js] - "use strict"; --/// - var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); -@@= skipped -17, +16 lines =@@ +@@= skipped -224, +224 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.a0 = exports.a9 = exports.a8 = exports.a7 = exports.a6 = exports.a5 = exports.a4 = exports.a3 = exports.a2 = exports.a1 = void 0; diff --git a/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js b/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js index a81be3a2ca..7c0a7f2eda 100644 --- a/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js +++ b/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js @@ -144,6 +144,7 @@ const attributes2: Attribute2 = { //// [excessPropertyCheckWithMultipleDiscriminants.js] "use strict"; +// Repro from #32657 Object.defineProperty(exports, "__esModule", { value: true }); const foo = { type: "number", diff --git a/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js.diff b/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js.diff deleted file mode 100644 index 9f32319ccc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/excessPropertyCheckWithMultipleDiscriminants.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.excessPropertyCheckWithMultipleDiscriminants.js -+++ new.excessPropertyCheckWithMultipleDiscriminants.js -@@= skipped -143, +143 lines =@@ - - //// [excessPropertyCheckWithMultipleDiscriminants.js] - "use strict"; --// Repro from #32657 - Object.defineProperty(exports, "__esModule", { value: true }); - const foo = { - type: "number", \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js b/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js index 2da41c0e26..1d1a6bde39 100644 --- a/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js +++ b/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js @@ -75,6 +75,7 @@ test = { foo: true, bar: { foo: true, bar: true, boo: true } } //// [excessPropertyChecksWithNestedIntersections.js] "use strict"; +// https://github.com/Microsoft/TypeScript/issues/13813 Object.defineProperty(exports, "__esModule", { value: true }); exports.myInstance = exports.photo = exports.obj = void 0; let a = { a: { x: 'hello' } }; // ok diff --git a/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js.diff b/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js.diff deleted file mode 100644 index f87d79cdcf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/excessPropertyChecksWithNestedIntersections.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.excessPropertyChecksWithNestedIntersections.js -+++ new.excessPropertyChecksWithNestedIntersections.js -@@= skipped -74, +74 lines =@@ - - //// [excessPropertyChecksWithNestedIntersections.js] - "use strict"; --// https://github.com/Microsoft/TypeScript/issues/13813 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.myInstance = exports.photo = exports.obj = void 0; - let a = { a: { x: 'hello' } }; // ok \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js b/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js index 5f3c2cb38a..eb963d74e4 100644 --- a/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js +++ b/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js @@ -42,6 +42,7 @@ const a14 = [...a13, ...a13] as const; // 2^14 > 10,000 //// [excessivelyLargeTupleSpread.js] +// #41771 const a0 = [0]; const a1 = [...a0, ...a0]; const a2 = [...a1, ...a1]; diff --git a/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js.diff b/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js.diff deleted file mode 100644 index 92979b3175..0000000000 --- a/testdata/baselines/reference/submodule/compiler/excessivelyLargeTupleSpread.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.excessivelyLargeTupleSpread.js -+++ new.excessivelyLargeTupleSpread.js -@@= skipped -41, +41 lines =@@ - - - //// [excessivelyLargeTupleSpread.js] --// #41771 - const a0 = [0]; - const a1 = [...a0, ...a0]; - const a2 = [...a1, ...a1]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js b/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js index e92726d1c4..ec7240b8bf 100644 --- a/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js +++ b/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js @@ -40,6 +40,7 @@ function functionC(): void { //// [exhaustiveSwitchCheckCircularity.js] +// Repro from #47539 function f() { let foo = "aaa"; while (true) { diff --git a/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js.diff b/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js.diff index 993390a5ce..6f44da6b5b 100644 --- a/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exhaustiveSwitchCheckCircularity.js.diff @@ -5,7 +5,6 @@ //// [exhaustiveSwitchCheckCircularity.js] -"use strict"; --// Repro from #47539 + // Repro from #47539 function f() { - let foo = "aaa"; - while (true) { \ No newline at end of file + let foo = "aaa"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js b/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js index 1b37891205..dfa5893abe 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js @@ -22,10 +22,10 @@ if (Math.random()) { //// [expandoFunctionBlockShadowing.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/56538 Object.defineProperty(exports, "__esModule", { value: true }); exports.X = X; exports.Y = Y; -// https://github.com/microsoft/TypeScript/issues/56538 function X() { } if (Math.random()) { const X = {}; diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js.diff b/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js.diff deleted file mode 100644 index ad675825bb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionBlockShadowing.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.expandoFunctionBlockShadowing.js -+++ new.expandoFunctionBlockShadowing.js -@@= skipped -21, +21 lines =@@ - - //// [expandoFunctionBlockShadowing.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/56538 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.X = X; - exports.Y = Y; -+// https://github.com/microsoft/TypeScript/issues/56538 - function X() { } - if (Math.random()) { - const X = {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js b/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js index 054a90b860..da77799946 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js @@ -14,9 +14,9 @@ expr2[s] = 0 //// [expandoFunctionExpressionsWithDynamicNames.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/54809 Object.defineProperty(exports, "__esModule", { value: true }); exports.expr2 = exports.expr = void 0; -// https://github.com/microsoft/TypeScript/issues/54809 const s = "X"; const expr = () => { }; exports.expr = expr; diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js.diff b/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js.diff index df20fd2068..bc387e9ed0 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js.diff +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionExpressionsWithDynamicNames.js.diff @@ -1,17 +1,6 @@ --- old.expandoFunctionExpressionsWithDynamicNames.js +++ new.expandoFunctionExpressionsWithDynamicNames.js -@@= skipped -13, +13 lines =@@ - - //// [expandoFunctionExpressionsWithDynamicNames.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/54809 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.expr2 = exports.expr = void 0; -+// https://github.com/microsoft/TypeScript/issues/54809 - const s = "X"; - const expr = () => { }; - exports.expr = expr; -@@= skipped -13, +13 lines =@@ +@@= skipped -26, +26 lines =@@ //// [expandoFunctionExpressionsWithDynamicNames.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js b/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js index eaa83e486c..cd98400344 100644 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js +++ b/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js @@ -38,6 +38,7 @@ export function testUndefined(): TestUndefined { //// [expandoFunctionNullishProperty.js] +// mentioned in https://github.com/microsoft/TypeScript/issues/54220 export function testNull() { function inner() { } inner.prop = null; diff --git a/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js.diff b/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js.diff deleted file mode 100644 index f5d6dc439b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/expandoFunctionNullishProperty.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.expandoFunctionNullishProperty.js -+++ new.expandoFunctionNullishProperty.js -@@= skipped -37, +37 lines =@@ - - - //// [expandoFunctionNullishProperty.js] --// mentioned in https://github.com/microsoft/TypeScript/issues/54220 - export function testNull() { - function inner() { } - inner.prop = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js index 56044df4b6..e8fe3f601b 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js @@ -18,9 +18,9 @@ export { B } //// [exportDeclarationForModuleOrEnumWithMemberOfSameName.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/55038 Object.defineProperty(exports, "__esModule", { value: true }); exports.B = exports.A = void 0; -// https://github.com/microsoft/TypeScript/issues/55038 var A; (function (A_1) { A_1.A = 0; diff --git a/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js.diff deleted file mode 100644 index 9675ac592a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js -+++ new.exportDeclarationForModuleOrEnumWithMemberOfSameName(module=commonjs).js -@@= skipped -17, +17 lines =@@ - - //// [exportDeclarationForModuleOrEnumWithMemberOfSameName.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/55038 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.B = exports.A = void 0; -+// https://github.com/microsoft/TypeScript/issues/55038 - var A; - (function (A_1) { - A_1.A = 0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js index 30f165ebe4..077ffd357f 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js @@ -10,10 +10,10 @@ export { aa as default } from './hi' //// [exportDefaultDuplicateCrash.js] "use strict"; +// #38214 Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.default = default_1; -// #38214 function default_1() { } const hi_1 = require("./hi"); Object.defineProperty(exports, "default", { enumerable: true, get: function () { return hi_1.default; } }); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff index 9fc17e9cc4..d457f0ef4e 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultDuplicateCrash.js.diff @@ -1,14 +1,8 @@ --- old.exportDefaultDuplicateCrash.js +++ new.exportDefaultDuplicateCrash.js -@@= skipped -9, +9 lines =@@ - - //// [exportDefaultDuplicateCrash.js] - "use strict"; --// #38214 - Object.defineProperty(exports, "__esModule", { value: true }); +@@= skipped -14, +14 lines =@@ exports.default = void 0; exports.default = default_1; -+// #38214 function default_1() { } -var hi_1 = require("./hi"); +const hi_1 = require("./hi"); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js b/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js index a75a467ba1..ed42c5818e 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js @@ -11,3 +11,4 @@ declare module 'module' { //// [exportDefaultVariable.js] +// Regression test for #3018 diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js.diff deleted file mode 100644 index fb2dddfa33..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultVariable.js.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.exportDefaultVariable.js -+++ new.exportDefaultVariable.js -@@= skipped -10, +10 lines =@@ - - - //// [exportDefaultVariable.js] --// Regression test for #3018 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js b/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js index 34286aaf03..42f1f7cf4a 100644 --- a/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js +++ b/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js @@ -25,6 +25,7 @@ function f(x: FlatArray, y: FlatArray) //// [flatArrayNoExcessiveStackDepth.js] +// Repro from #43493 const bar = foo.flatMap(bar => bar); // Repros from comments in #43249 const repro_43249 = (value) => { diff --git a/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js.diff b/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js.diff index de12ee2d61..c9bcb682b0 100644 --- a/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js.diff +++ b/testdata/baselines/reference/submodule/compiler/flatArrayNoExcessiveStackDepth.js.diff @@ -5,7 +5,6 @@ //// [flatArrayNoExcessiveStackDepth.js] -"use strict"; --// Repro from #43493 + // Repro from #43493 const bar = foo.flatMap(bar => bar); - // Repros from comments in #43249 - const repro_43249 = (value) => { \ No newline at end of file + // Repros from comments in #43249 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js b/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js index 18ffbc6d0c..d0d355ef63 100644 --- a/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js +++ b/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js @@ -9,5 +9,6 @@ q("x"); //// [freshLiteralTypesInIntersections.js] +// Repro from #19657 const q = func("x", ["x"]); q("x"); diff --git a/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js.diff b/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js.diff index 1a4ac6adf4..2186d4d734 100644 --- a/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js.diff +++ b/testdata/baselines/reference/submodule/compiler/freshLiteralTypesInIntersections.js.diff @@ -5,6 +5,6 @@ //// [freshLiteralTypesInIntersections.js] -"use strict"; --// Repro from #19657 + // Repro from #19657 const q = func("x", ["x"]); q("x"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js b/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js index e26a0c62a4..ad55053719 100644 --- a/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js +++ b/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js @@ -23,6 +23,7 @@ function callN(p: T) { } //// [functionCallOnConstrainedTypeVariable.js] +// Repro from #20196 function call0(p) { p.a("s"); // Error } diff --git a/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js.diff b/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js.diff index 6b5920b987..89ac39c155 100644 --- a/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js.diff +++ b/testdata/baselines/reference/submodule/compiler/functionCallOnConstrainedTypeVariable.js.diff @@ -5,7 +5,6 @@ //// [functionCallOnConstrainedTypeVariable.js] -"use strict"; --// Repro from #20196 + // Repro from #20196 function call0(p) { - p.a("s"); // Error - } \ No newline at end of file + p.a("s"); // Error \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js b/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js index eac4f5f8e0..cbb72e8ab1 100644 --- a/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js +++ b/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js @@ -34,6 +34,7 @@ enhancer4.onChange(null); //// [genericFunctionInference2.js] +// Repro from #30685 const myReducer1 = combineReducers({ combined: combineReducers({ foo }), }); diff --git a/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js.diff b/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js.diff deleted file mode 100644 index 57fccd601a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/genericFunctionInference2.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.genericFunctionInference2.js -+++ new.genericFunctionInference2.js -@@= skipped -33, +33 lines =@@ - - - //// [genericFunctionInference2.js] --// Repro from #30685 - const myReducer1 = combineReducers({ - combined: combineReducers({ foo }), - }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js index b630ace2fd..404e6a0271 100644 --- a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js +++ b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js @@ -16,6 +16,7 @@ f1<"b">(event => { }); //// [genericInferenceDefaultTypeParameter.js] +// Repro from #50858 f1(event => { }); f1(event => { }); f1(event => { }); diff --git a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js.diff b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js.diff index 58907b3091..4c3d1313c7 100644 --- a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js.diff +++ b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameter.js.diff @@ -5,7 +5,6 @@ //// [genericInferenceDefaultTypeParameter.js] -"use strict"; --// Repro from #50858 - f1(event => { }); + // Repro from #50858 f1(event => { }); f1(event => { }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js index 5dc0a47dea..7c9d1c4b98 100644 --- a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js +++ b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js @@ -18,11 +18,11 @@ const v1 = e.preventDefault()} />; //// [genericInferenceDefaultTypeParameterJsxReact.js] "use strict"; +/// var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -/// // Repro from #50858 const react_1 = __importDefault(require("react")); function Component(props) { diff --git a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js.diff b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js.diff index fb30d959fd..7cd137b7da 100644 --- a/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js.diff +++ b/testdata/baselines/reference/submodule/compiler/genericInferenceDefaultTypeParameterJsxReact.js.diff @@ -1,15 +1,8 @@ --- old.genericInferenceDefaultTypeParameterJsxReact.js +++ new.genericInferenceDefaultTypeParameterJsxReact.js -@@= skipped -17, +17 lines =@@ - - //// [genericInferenceDefaultTypeParameterJsxReact.js] - "use strict"; --/// - var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +@@= skipped -23, +23 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); -+/// // Repro from #50858 -var react_1 = __importDefault(require("react")); +const react_1 = __importDefault(require("react")); diff --git a/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js b/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js index 64a67ccc66..c4f2c68476 100644 --- a/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js +++ b/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js @@ -13,6 +13,7 @@ let o2: { b: string, x: number } = test(o1); //// [genericIsNeverEmptyObject.js] +// Repro from #29067 var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -35,7 +36,6 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; -// Repro from #29067 function test(obj) { let { a } = obj, rest = __rest(obj, ["a"]); return __assign(__assign({}, rest), { b: a }); diff --git a/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js.diff b/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js.diff index f4c36261ad..4d67e47082 100644 --- a/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js.diff +++ b/testdata/baselines/reference/submodule/compiler/genericIsNeverEmptyObject.js.diff @@ -5,15 +5,6 @@ //// [genericIsNeverEmptyObject.js] -"use strict"; --// Repro from #29067 + // Repro from #29067 var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -24, +22 lines =@@ - } - return t; - }; -+// Repro from #29067 - function test(obj) { - let { a } = obj, rest = __rest(obj, ["a"]); - return __assign(__assign({}, rest), { b: a }); \ No newline at end of file + __assign = Object.assign || function(t) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/genericRestTypes.js b/testdata/baselines/reference/submodule/compiler/genericRestTypes.js index 3440eff575..cc93397822 100644 --- a/testdata/baselines/reference/submodule/compiler/genericRestTypes.js +++ b/testdata/baselines/reference/submodule/compiler/genericRestTypes.js @@ -30,6 +30,7 @@ function assignmentWithComplexRest3() { } //// [genericRestTypes.js] +// Repro from #25793 function assignmentWithComplexRest() { const fn1 = (x, ..._) => x; const fn2 = fn1; diff --git a/testdata/baselines/reference/submodule/compiler/genericRestTypes.js.diff b/testdata/baselines/reference/submodule/compiler/genericRestTypes.js.diff index 327b439fef..865211326a 100644 --- a/testdata/baselines/reference/submodule/compiler/genericRestTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/genericRestTypes.js.diff @@ -5,7 +5,6 @@ //// [genericRestTypes.js] -"use strict"; --// Repro from #25793 + // Repro from #25793 function assignmentWithComplexRest() { - const fn1 = (x, ..._) => x; - const fn2 = fn1; \ No newline at end of file + const fn1 = (x, ..._) => x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js b/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js index 81379d9a8e..20d85a7956 100644 --- a/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js +++ b/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js @@ -13,4 +13,5 @@ cases(fn(opts => { })); //// [getParameterNameAtPosition.js] +// Repro from #30171 cases(fn(opts => { })); diff --git a/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js.diff b/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js.diff index 6faee97c2a..3377b2d600 100644 --- a/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js.diff +++ b/testdata/baselines/reference/submodule/compiler/getParameterNameAtPosition.js.diff @@ -5,5 +5,5 @@ //// [getParameterNameAtPosition.js] -"use strict"; --// Repro from #30171 + // Repro from #30171 cases(fn(opts => { })); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js b/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js index 3a97a865d2..3756895cc1 100644 --- a/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js +++ b/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js @@ -21,6 +21,7 @@ function f1(state: State<{ foo: number }>) { //// [identityRelationNeverTypes.js] +// Repro from #47996 function f1(state) { if (state.matches('a') && state.matches('a.b')) { state; // never diff --git a/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js.diff b/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js.diff index a3fc586d45..9d389e331e 100644 --- a/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/identityRelationNeverTypes.js.diff @@ -5,7 +5,6 @@ //// [identityRelationNeverTypes.js] -"use strict"; --// Repro from #47996 + // Repro from #47996 function f1(state) { - if (state.matches('a') && state.matches('a.b')) { - state; // never \ No newline at end of file + if (state.matches('a') && state.matches('a.b')) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js index e4eea244b9..f2d8c25c70 100644 --- a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js +++ b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js @@ -25,8 +25,8 @@ let x2 = ; // Error //// [ignoredJsxAttributes.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); // Repro from #44797 const React = require("react"); let props = { diff --git a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff index 39292a7044..1dc2a3e2ff 100644 --- a/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/ignoredJsxAttributes.js.diff @@ -1,12 +1,8 @@ --- old.ignoredJsxAttributes.js +++ new.ignoredJsxAttributes.js -@@= skipped -24, +24 lines =@@ - - //// [ignoredJsxAttributes.js] - "use strict"; --/// +@@= skipped -27, +27 lines =@@ + /// Object.defineProperty(exports, "__esModule", { value: true }); -+/// // Repro from #44797 -var React = require("react"); +const React = require("react"); diff --git a/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js b/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js index a336436e99..c0a40a48ca 100644 --- a/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js +++ b/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js @@ -23,6 +23,8 @@ class C2 implements IFoo2 { // error } //// [implementGenericWithMismatchedTypes.js] +// no errors because in the derived types the best common type for T's value is Object +// and that matches the original signature for assignability since we treat its T's as Object class C { foo(x) { return null; diff --git a/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js.diff b/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js.diff deleted file mode 100644 index 62094db9bf..0000000000 --- a/testdata/baselines/reference/submodule/compiler/implementGenericWithMismatchedTypes.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.implementGenericWithMismatchedTypes.js -+++ new.implementGenericWithMismatchedTypes.js -@@= skipped -22, +22 lines =@@ - } - - //// [implementGenericWithMismatchedTypes.js] --// no errors because in the derived types the best common type for T's value is Object --// and that matches the original signature for assignability since we treat its T's as Object - class C { - foo(x) { - return null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js b/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js index 51b4c2f889..7a7aed1ed6 100644 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js +++ b/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js @@ -24,6 +24,7 @@ function f2(mymap: MyMap, k: keyof M, z: { x: number }) { //// [indexedAccessNormalization.js] +// Repro from from #43152 function f1(mymap, k) { const elemofM = mymap[k]; g(elemofM); diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js.diff b/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js.diff index 5595f810a2..d3057e5365 100644 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js.diff +++ b/testdata/baselines/reference/submodule/compiler/indexedAccessNormalization.js.diff @@ -5,7 +5,6 @@ //// [indexedAccessNormalization.js] -"use strict"; --// Repro from from #43152 + // Repro from from #43152 function f1(mymap, k) { - const elemofM = mymap[k]; - g(elemofM); \ No newline at end of file + const elemofM = mymap[k]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js b/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js index ccdebbb66a..0a52abf84e 100644 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js +++ b/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js @@ -23,8 +23,8 @@ class Comp extends Component> //// [indexedAccessRelation.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); // Repro from #14723 +Object.defineProperty(exports, "__esModule", { value: true }); class Component { setState(state) { } } diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js.diff b/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js.diff deleted file mode 100644 index 2f676bbe24..0000000000 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessRelation.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.indexedAccessRelation.js -+++ new.indexedAccessRelation.js -@@= skipped -22, +22 lines =@@ - - //// [indexedAccessRelation.js] - "use strict"; --// Repro from #14723 - Object.defineProperty(exports, "__esModule", { value: true }); -+// Repro from #14723 - class Component { - setState(state) { } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js b/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js index aa3ef89972..85888552d7 100644 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js @@ -39,6 +39,7 @@ function foo(x: C, y: T['content']) { //// [indexedAccessTypeConstraints.js] "use strict"; +// Repro from #14557 Object.defineProperty(exports, "__esModule", { value: true }); exports.Bar = exports.Foo = void 0; class Parent { diff --git a/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js.diff index 1fcf56ce47..7812071eaa 100644 --- a/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js.diff +++ b/testdata/baselines/reference/submodule/compiler/indexedAccessTypeConstraints.js.diff @@ -1,10 +1,6 @@ --- old.indexedAccessTypeConstraints.js +++ new.indexedAccessTypeConstraints.js -@@= skipped -38, +38 lines =@@ - - //// [indexedAccessTypeConstraints.js] - "use strict"; --// Repro from #14557 +@@= skipped -42, +42 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Bar = exports.Foo = void 0; class Parent { diff --git a/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js b/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js index 2049f4d25b..4e66f0faa5 100644 --- a/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js +++ b/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js @@ -33,6 +33,7 @@ let n: number = f(2).a; //// [indirectTypeParameterReferences.js] +// Repro from #19043 const flowtypes = (b) => { const combined = (fn) => null; const literal = (fn) => null; diff --git a/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js.diff b/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js.diff deleted file mode 100644 index aaa080d08a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/indirectTypeParameterReferences.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.indirectTypeParameterReferences.js -+++ new.indirectTypeParameterReferences.js -@@= skipped -32, +32 lines =@@ - - - //// [indirectTypeParameterReferences.js] --// Repro from #19043 - const flowtypes = (b) => { - const combined = (fn) => null; - const literal = (fn) => null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js b/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js index 3584a8132a..fd0f6080ea 100644 --- a/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js +++ b/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js @@ -12,6 +12,7 @@ b.m("test", function (bug) { }); //// [inferSecondaryParameter.js] +// type inference on 'bug' should give 'any' var b = { m: function (test, fn) { } }; b.m("test", function (bug) { var a = bug; diff --git a/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js.diff b/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js.diff deleted file mode 100644 index 01cb15dbb6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inferSecondaryParameter.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.inferSecondaryParameter.js -+++ new.inferSecondaryParameter.js -@@= skipped -11, +11 lines =@@ - }); - - //// [inferSecondaryParameter.js] --// type inference on 'bug' should give 'any' - var b = { m: function (test, fn) { } }; - b.m("test", function (bug) { - var a = bug; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js b/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js index f038359b08..7b99077c69 100644 --- a/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js @@ -41,6 +41,7 @@ m.child; // ok //// [inferTypeParameterConstraints.js] +// Repro from #42636 // https://github.com/microsoft/TypeScript/issues/57286#issuecomment-1927920336 class BaseClass { fake() { diff --git a/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js.diff index 4d4403e0ed..5b15a9e6b9 100644 --- a/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js.diff +++ b/testdata/baselines/reference/submodule/compiler/inferTypeParameterConstraints.js.diff @@ -5,11 +5,10 @@ //// [inferTypeParameterConstraints.js] -"use strict"; --// Repro from #42636 + // Repro from #42636 // https://github.com/microsoft/TypeScript/issues/57286#issuecomment-1927920336 class BaseClass { - fake() { -@@= skipped -9, +7 lines =@@ +@@= skipped -9, +8 lines =@@ } } class Klass extends BaseClass { diff --git a/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js b/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js index 3ba422ef3f..c630f363f7 100644 --- a/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js +++ b/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js @@ -33,6 +33,7 @@ const res3 = test({ //// [inferenceAndSelfReferentialConstraint.js] +// @strict function test(arg) { return arg; } diff --git a/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js.diff b/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js.diff deleted file mode 100644 index 97cadbab15..0000000000 --- a/testdata/baselines/reference/submodule/compiler/inferenceAndSelfReferentialConstraint.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.inferenceAndSelfReferentialConstraint.js -+++ new.inferenceAndSelfReferentialConstraint.js -@@= skipped -32, +32 lines =@@ - - - //// [inferenceAndSelfReferentialConstraint.js] --// @strict - function test(arg) { - return arg; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js b/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js index 7349cb195d..556e627a49 100644 --- a/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js +++ b/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js @@ -56,6 +56,7 @@ type T2 = GetT1; // number //// [inferenceErasedSignatures.js] +// Repro from #37163 class SomeAbstractClass extends SomeBaseClass { foo; bar; diff --git a/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js.diff b/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js.diff index fad7f0a963..90e89856c6 100644 --- a/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js.diff +++ b/testdata/baselines/reference/submodule/compiler/inferenceErasedSignatures.js.diff @@ -5,7 +5,7 @@ //// [inferenceErasedSignatures.js] -"use strict"; --// Repro from #37163 + // Repro from #37163 -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { diff --git a/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js b/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js index a5fd40279b..b2e7c48bd7 100644 --- a/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js +++ b/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js @@ -15,4 +15,5 @@ Component({items: [{name:' string'}], itemKey: 'name' }); //// [inferenceFromIncompleteSource.js] +// Repro from #42030 Component({ items: [{ name: ' string' }], itemKey: 'name' }); diff --git a/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js.diff b/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js.diff index 165491bb7d..6abf1807cb 100644 --- a/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js.diff +++ b/testdata/baselines/reference/submodule/compiler/inferenceFromIncompleteSource.js.diff @@ -5,5 +5,5 @@ //// [inferenceFromIncompleteSource.js] -"use strict"; --// Repro from #42030 + // Repro from #42030 Component({ items: [{ name: ' string' }], itemKey: 'name' }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js b/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js index 791ffb843a..e3dff9c7a2 100644 --- a/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js @@ -53,6 +53,7 @@ type Conv = //// [infiniteConstraints.js] "use strict"; +// Both of the following types trigger the recursion limiter in getImmediateBaseConstraint Object.defineProperty(exports, "__esModule", { value: true }); const out = myBug({ obj1: { a: "test" } }); const noError = ensureNoDuplicates({ main: value("test"), alternate: value("test2") }); diff --git a/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js.diff deleted file mode 100644 index bccf326f67..0000000000 --- a/testdata/baselines/reference/submodule/compiler/infiniteConstraints.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.infiniteConstraints.js -+++ new.infiniteConstraints.js -@@= skipped -52, +52 lines =@@ - - //// [infiniteConstraints.js] - "use strict"; --// Both of the following types trigger the recursion limiter in getImmediateBaseConstraint - Object.defineProperty(exports, "__esModule", { value: true }); - const out = myBug({ obj1: { a: "test" } }); - const noError = ensureNoDuplicates({ main: value("test"), alternate: value("test2") }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js b/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js index 86091a4dc7..a2d3a00181 100644 --- a/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js +++ b/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js @@ -187,6 +187,7 @@ assignPartial(obj, { foo(...args) {} }); // args has type [string] //// [instantiateContextualTypes.js] +// #6611 function fn(values, value) { } fn(handlers, value => alert(value)); diff --git a/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js.diff b/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js.diff index b1446de5ba..845ea67434 100644 --- a/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/instantiateContextualTypes.js.diff @@ -1,14 +1,6 @@ --- old.instantiateContextualTypes.js +++ new.instantiateContextualTypes.js -@@= skipped -186, +186 lines =@@ - - - //// [instantiateContextualTypes.js] --// #6611 - function fn(values, value) { - } - fn(handlers, value => alert(value)); -@@= skipped -22, +21 lines =@@ +@@= skipped -208, +208 lines =@@ })(N1 || (N1 = {})); passContentsToFunc(outerBoxOfString, box => box.value); class Interesting { diff --git a/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js b/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js index a282da3696..32452f4acf 100644 --- a/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js +++ b/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js @@ -18,6 +18,7 @@ const x1 = f1(); // Z const x2 = f2({}, {}, {}, {}); // Z<{}, string[]> //// [instantiatedTypeAliasDisplay.js] +// Repros from #12066 const x1 = f1(); // Z const x2 = f2({}, {}, {}, {}); // Z<{}, string[]> diff --git a/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js.diff b/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js.diff deleted file mode 100644 index d53a7d7398..0000000000 --- a/testdata/baselines/reference/submodule/compiler/instantiatedTypeAliasDisplay.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.instantiatedTypeAliasDisplay.js -+++ new.instantiatedTypeAliasDisplay.js -@@= skipped -17, +17 lines =@@ - const x2 = f2({}, {}, {}, {}); // Z<{}, string[]> - - //// [instantiatedTypeAliasDisplay.js] --// Repros from #12066 - const x1 = f1(); // Z - const x2 = f2({}, {}, {}, {}); // Z<{}, string[]> diff --git a/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js b/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js index 3c9c6d1b6b..e68f399703 100644 --- a/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js +++ b/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js @@ -8,4 +8,5 @@ new x(); //// [intersectionOfMixinConstructorTypeAndNonConstructorType.js] +// Repro for #17388 new x(); diff --git a/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js.diff b/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js.diff deleted file mode 100644 index 186b4c63d0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.intersectionOfMixinConstructorTypeAndNonConstructorType.js -+++ new.intersectionOfMixinConstructorTypeAndNonConstructorType.js -@@= skipped -7, +7 lines =@@ - - - //// [intersectionOfMixinConstructorTypeAndNonConstructorType.js] --// Repro for #17388 - new x(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js b/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js index 961b7c1037..23ed81694f 100644 --- a/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js +++ b/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js @@ -12,9 +12,9 @@ export const Form3 = brokenFunction(parameterFn)({store: "hello"}) //// [intersectionTypeInference1.js] "use strict"; +// Repro from #8801 Object.defineProperty(exports, "__esModule", { value: true }); exports.Form3 = void 0; -// Repro from #8801 function alert(s) { } const parameterFn = (props) => alert(props.store); const brokenFunction = (f) => (o) => o; diff --git a/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js.diff b/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js.diff deleted file mode 100644 index 56f35b8476..0000000000 --- a/testdata/baselines/reference/submodule/compiler/intersectionTypeInference1.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.intersectionTypeInference1.js -+++ new.intersectionTypeInference1.js -@@= skipped -11, +11 lines =@@ - - //// [intersectionTypeInference1.js] - "use strict"; --// Repro from #8801 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Form3 = void 0; -+// Repro from #8801 - function alert(s) { } - const parameterFn = (props) => alert(props.store); - const brokenFunction = (f) => (o) => o; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js index 8a09619e08..6e682816f3 100644 --- a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js +++ b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js @@ -30,11 +30,11 @@ export function assertNodeProperty< //// [intersectionsOfLargeUnions.js] "use strict"; +// Repro from #23977 Object.defineProperty(exports, "__esModule", { value: true }); exports.assertIsElement = assertIsElement; exports.assertNodeTagName = assertNodeTagName; exports.assertNodeProperty = assertNodeProperty; -// Repro from #23977 function assertIsElement(node) { let nodeType = node === null ? null : node.nodeType; return nodeType === 1; diff --git a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js.diff b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js.diff deleted file mode 100644 index 1552e303e5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions.js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.intersectionsOfLargeUnions.js -+++ new.intersectionsOfLargeUnions.js -@@= skipped -29, +29 lines =@@ - - //// [intersectionsOfLargeUnions.js] - "use strict"; --// Repro from #23977 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.assertIsElement = assertIsElement; - exports.assertNodeTagName = assertNodeTagName; - exports.assertNodeProperty = assertNodeProperty; -+// Repro from #23977 - function assertIsElement(node) { - let nodeType = node === null ? null : node.nodeType; - return nodeType === 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js index d61b378eec..4fdc0f80b9 100644 --- a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js +++ b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js @@ -40,6 +40,7 @@ export function assertNodeProperty< //// [intersectionsOfLargeUnions2.js] "use strict"; +// Repro from #24233 Object.defineProperty(exports, "__esModule", { value: true }); exports.assertIsElement = assertIsElement; exports.assertNodeTagName = assertNodeTagName; diff --git a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js.diff b/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js.diff deleted file mode 100644 index 7468281772..0000000000 --- a/testdata/baselines/reference/submodule/compiler/intersectionsOfLargeUnions2.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.intersectionsOfLargeUnions2.js -+++ new.intersectionsOfLargeUnions2.js -@@= skipped -39, +39 lines =@@ - - //// [intersectionsOfLargeUnions2.js] - "use strict"; --// Repro from #24233 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.assertIsElement = assertIsElement; - exports.assertNodeTagName = assertNodeTagName; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js index f373f20796..64ad2de25b 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js +++ b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js @@ -12,6 +12,7 @@ export const foo3 = (type: Unresolved): void => {}; //// [isolatedDeclarationErrorTypes1.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/60192 Object.defineProperty(exports, "__esModule", { value: true }); exports.foo3 = exports.foo2 = exports.foo1 = void 0; const foo1 = (type) => { }; diff --git a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js.diff b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js.diff index bec6aaca54..4134efb25c 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationErrorTypes1.js.diff @@ -1,14 +1,6 @@ --- old.isolatedDeclarationErrorTypes1.js +++ new.isolatedDeclarationErrorTypes1.js -@@= skipped -11, +11 lines =@@ - - //// [isolatedDeclarationErrorTypes1.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/60192 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.foo3 = exports.foo2 = exports.foo1 = void 0; - const foo1 = (type) => { }; -@@= skipped -12, +11 lines =@@ +@@= skipped -23, +23 lines =@@ //// [isolatedDeclarationErrorTypes1.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js index ead291b262..32bc756193 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js +++ b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js @@ -28,12 +28,12 @@ export function test3(x?: Unresolved): void {} //// [isolatedDeclarationsAddUndefined2.js] "use strict"; +// https://github.com/microsoft/TypeScript/issues/60123 Object.defineProperty(exports, "__esModule", { value: true }); exports.Bar4 = exports.Bar3 = exports.Bar2 = exports.Bar = void 0; exports.test1 = test1; exports.test2 = test2; exports.test3 = test3; -// https://github.com/microsoft/TypeScript/issues/60123 class Bar { x; constructor(x) { diff --git a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js.diff b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js.diff index b9c92a668b..1a37f56f75 100644 --- a/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/isolatedDeclarationsAddUndefined2.js.diff @@ -1,16 +1,8 @@ --- old.isolatedDeclarationsAddUndefined2.js +++ new.isolatedDeclarationsAddUndefined2.js -@@= skipped -27, +27 lines =@@ - - //// [isolatedDeclarationsAddUndefined2.js] - "use strict"; --// https://github.com/microsoft/TypeScript/issues/60123 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Bar4 = exports.Bar3 = exports.Bar2 = exports.Bar = void 0; - exports.test1 = test1; +@@= skipped -34, +34 lines =@@ exports.test2 = test2; exports.test3 = test3; -+// https://github.com/microsoft/TypeScript/issues/60123 class Bar { + x; constructor(x) { diff --git a/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js b/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js index bf182d3b0a..225ab69c4c 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js +++ b/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js @@ -14,11 +14,11 @@ module.exports = function loader(options) {} //// [index.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /** * @typedef Options * @property {string} opt */ +Object.defineProperty(exports, "__esModule", { value: true }); /** * @param {Options} options */ @@ -34,6 +34,10 @@ module.exports = function loader(options) { }; //// [index.d.ts] +/** + * @typedef Options + * @property {string} opt + */ export type Options = { opt: string; }; diff --git a/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js.diff b/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js.diff index b9cfac184e..05ce65400f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js.diff @@ -1,22 +1,22 @@ --- old.jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js +++ new.jsDeclarationEmitExportAssignedFunctionWithExtraTypedefsMembers.js -@@= skipped -13, +13 lines =@@ - - //// [index.js] - "use strict"; +@@= skipped -17, +17 lines =@@ + * @typedef Options + * @property {string} opt + */ +Object.defineProperty(exports, "__esModule", { value: true }); +/** -+ * @typedef Options -+ * @property {string} opt -+ */ -+/** + * @param {Options} options + */ +export = function loader(options) { }; ++/** ++ * @typedef Options ++ * @property {string} opt ++ */ /** - * @typedef Options - * @property {string} opt -@@= skipped -11, +20 lines =@@ + * @param {Options} options + */ +@@= skipped -7, +16 lines =@@ //// [index.d.ts] @@ -26,6 +26,10 @@ -declare function _exports(options: Options): void; -export = _exports; -type Options = { ++/** ++ * @typedef Options ++ * @property {string} opt ++ */ +export type Options = { opt: string; }; diff --git a/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js b/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js index efd479b20b..27af38aea1 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js +++ b/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js @@ -36,6 +36,10 @@ class C3 extends C1 { //// [a.d.ts] +/** + * @typedef A + * @property {string} a + */ export type A = { a: string; }; diff --git a/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js.diff b/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js.diff index 0847a31c50..b9410f80a6 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsDeclarationsInheritedTypes.js.diff @@ -1,13 +1,9 @@ --- old.jsDeclarationsInheritedTypes.js +++ new.jsDeclarationsInheritedTypes.js -@@= skipped -35, +35 lines =@@ - - - //// [a.d.ts] --/** -- * @typedef A -- * @property {string} a -- */ +@@= skipped -39, +39 lines =@@ + * @typedef A + * @property {string} a + */ -/** - * @typedef B - * @property {number} b diff --git a/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js b/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js index 236608d9bd..0bb4e6f499 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js +++ b/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js @@ -47,10 +47,10 @@ NewAjax.prototype.case6_unexpectedlyResolvesPathToNodeModules; //// [index.d.ts] -export type LionRequestInit = import('@lion/ajax').LionRequestInit; /** * @typedef {import('@lion/ajax').LionRequestInit} LionRequestInit */ +export type LionRequestInit = import('@lion/ajax').LionRequestInit; export declare class NewAjax { /** * @param {LionRequestInit} [init] diff --git a/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js.diff b/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js.diff index 7a5027b638..18975a2a3f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js.diff @@ -1,14 +1,11 @@ --- old.jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js +++ new.jsDocDeclarationEmitDoesNotUseNodeModulesPathWithoutError.js -@@= skipped -46, +46 lines =@@ - - - //// [index.d.ts] -+export type LionRequestInit = import('@lion/ajax').LionRequestInit; +@@= skipped -49, +49 lines =@@ /** * @typedef {import('@lion/ajax').LionRequestInit} LionRequestInit */ -export class NewAjax { ++export type LionRequestInit = import('@lion/ajax').LionRequestInit; +export declare class NewAjax { /** * @param {LionRequestInit} [init] diff --git a/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js b/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js index 30fd9c4e05..6a374721cf 100644 --- a/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js +++ b/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js @@ -56,10 +56,10 @@ const example3 = { //// [jsFileAlternativeUseOfOverloadTag.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); // These are a few examples of existing alternative uses of @overload tag. // They will not work as expected with our implementation, but we are // trying to make sure that our changes do not result in any crashes here. +Object.defineProperty(exports, "__esModule", { value: true }); const example1 = { /** * @overload Example1(value) diff --git a/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js.diff b/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js.diff index 72bb7b12fe..8dae32a238 100644 --- a/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsFileAlternativeUseOfOverloadTag.js.diff @@ -5,10 +5,13 @@ //// [jsFileAlternativeUseOfOverloadTag.js] +"use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); // These are a few examples of existing alternative uses of @overload tag. // They will not work as expected with our implementation, but we are // trying to make sure that our changes do not result in any crashes here. ++Object.defineProperty(exports, "__esModule", { value: true }); + const example1 = { + /** + * @overload Example1(value) @@= skipped -51, +53 lines =@@ diff --git a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js index 089e12841d..4f197298a1 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js +++ b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js @@ -17,9 +17,9 @@ export const Hoc = ( //// [jsxCallElaborationCheckNoCrash1.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); exports.Hoc = void 0; -/// const React = require("react"); const Hoc = (TagElement) => { const Component = () => React.createElement(TagElement, null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff index c1dbfd53f8..8e4a0e5e02 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxCallElaborationCheckNoCrash1.js.diff @@ -1,14 +1,10 @@ --- old.jsxCallElaborationCheckNoCrash1.js +++ new.jsxCallElaborationCheckNoCrash1.js -@@= skipped -16, +16 lines =@@ - - //// [jsxCallElaborationCheckNoCrash1.js] - "use strict"; --/// +@@= skipped -19, +19 lines =@@ + /// Object.defineProperty(exports, "__esModule", { value: true }); exports.Hoc = void 0; -var React = require("react"); -+/// +const React = require("react"); const Hoc = (TagElement) => { const Component = () => React.createElement(TagElement, null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js index 354a537461..0730e084b9 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js @@ -28,9 +28,9 @@ export class App extends React.Component<{}> { //// [jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; -/// const React = require("react"); function TabLayout(props) { return React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff index 4f2d8d312a..9a6bac24b2 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js.diff @@ -1,14 +1,10 @@ --- old.jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js +++ new.jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js -@@= skipped -27, +27 lines =@@ - - //// [jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js] - "use strict"; --/// +@@= skipped -30, +30 lines =@@ + /// Object.defineProperty(exports, "__esModule", { value: true }); exports.App = void 0; -var React = require("react"); -+/// +const React = require("react"); function TabLayout(props) { return React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js index ee76f869af..b425a88ebd 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js +++ b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js @@ -612,6 +612,7 @@ export interface ReactSelectProps extends React.Props var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -625,7 +626,6 @@ var __assign = (this && this.__assign) || function () { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createReactSingleSelect = createReactSingleSelect; -/// const React = require("react"); function createReactSingleSelect(WrappedComponent) { return (props) => { diff --git a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff index 1a21218483..0cd38d4a45 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxComplexSignatureHasApplicabilityError.js.diff @@ -1,19 +1,10 @@ --- old.jsxComplexSignatureHasApplicabilityError.js +++ new.jsxComplexSignatureHasApplicabilityError.js -@@= skipped -611, +611 lines =@@ - - //// [jsxComplexSignatureHasApplicabilityError.js] - "use strict"; --/// - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -14, +13 lines =@@ +@@= skipped -625, +625 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createReactSingleSelect = createReactSingleSelect; -var React = require("react"); -+/// +const React = require("react"); function createReactSingleSelect(WrappedComponent) { return (props) => { diff --git a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js index cbd2b8fb00..37a0f7edfd 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js +++ b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js @@ -20,6 +20,7 @@ const myHoc = ( //// [jsxExcessPropsAndAssignability.js] "use strict"; +/// var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -32,7 +33,6 @@ var __assign = (this && this.__assign) || function () { return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -/// const React = require("react"); const myHoc = (ComposedComponent) => { const WrapperComponent = null; diff --git a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff index 961aefabfb..ab464f6bd5 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxExcessPropsAndAssignability.js.diff @@ -1,19 +1,10 @@ --- old.jsxExcessPropsAndAssignability.js +++ new.jsxExcessPropsAndAssignability.js -@@= skipped -19, +19 lines =@@ - - //// [jsxExcessPropsAndAssignability.js] - "use strict"; --/// - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -13, +12 lines =@@ +@@= skipped -32, +32 lines =@@ return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); const myHoc = (ComposedComponent) => { const WrapperComponent = null; diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js index 912b0e85c5..95beb17270 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js @@ -12,8 +12,8 @@ const tag = {"Title"}; //// [jsxIntrinsicUnions.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const El = Math.random() ? 'h1' : 'h2'; const tag = React.createElement(El, { className: "ok", key: "key" }, "Title"); diff --git a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff index 3ca0818f87..b0b95f3946 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIntrinsicUnions.js.diff @@ -1,13 +1,10 @@ --- old.jsxIntrinsicUnions.js +++ new.jsxIntrinsicUnions.js -@@= skipped -11, +11 lines =@@ - - //// [jsxIntrinsicUnions.js] +@@= skipped -13, +13 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); const El = Math.random() ? 'h1' : 'h2'; const tag = React.createElement(El, { className: "ok", key: "key" }, "Title"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js index 1c70ee3d23..d6cfb6507f 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js +++ b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js @@ -28,8 +28,8 @@ const d = ; // Technically OK, but probably //// [jsxIssuesErrorWhenTagExpectsTooManyArguments.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); function MyComp4(props, context, bad, verybad) { return React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff index 3125094b86..6b15ca0dec 100644 --- a/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/jsxIssuesErrorWhenTagExpectsTooManyArguments.js.diff @@ -1,13 +1,10 @@ --- old.jsxIssuesErrorWhenTagExpectsTooManyArguments.js +++ new.jsxIssuesErrorWhenTagExpectsTooManyArguments.js -@@= skipped -27, +27 lines =@@ - - //// [jsxIssuesErrorWhenTagExpectsTooManyArguments.js] +@@= skipped -29, +29 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); function MyComp4(props, context, bad, verybad) { return React.createElement("div", null); diff --git a/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js b/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js index d00023c9ca..3d4a46835e 100644 --- a/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js +++ b/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js @@ -9,5 +9,6 @@ let f2: Foo<"false", {}>; //// [limitDeepInstantiations.js] +// Repro from #14837 let f1; let f2; diff --git a/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js.diff b/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js.diff deleted file mode 100644 index 9ad270affc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/limitDeepInstantiations.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.limitDeepInstantiations.js -+++ new.limitDeepInstantiations.js -@@= skipped -8, +8 lines =@@ - - - //// [limitDeepInstantiations.js] --// Repro from #14837 - let f1; - let f2; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js b/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js index d3de3ec29e..e0cb4c8339 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js @@ -47,6 +47,7 @@ const onSomeEvent = (p: P) => //// [mappedTypeGenericIndexedAccess.js] +// Repro from #49242 class Test { entries; constructor() { diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js.diff index f9adfbcda2..e231cfa770 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js.diff +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeGenericIndexedAccess.js.diff @@ -5,13 +5,13 @@ //// [mappedTypeGenericIndexedAccess.js] -"use strict"; --// Repro from #49242 + // Repro from #49242 class Test { + entries; constructor() { this.entries = {}; } -@@= skipped -18, +17 lines =@@ +@@= skipped -18, +18 lines =@@ [0]: (p) => console.log(p.foo), [1]: (p) => console.log(p.a), }; diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js b/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js index 12d26ef41b..5db211fd58 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js @@ -31,6 +31,7 @@ let pair2: Pairs[keyof FooBar] = { //// [mappedTypeIndexedAccess.js] +// Repro from #15756 // Error expected here let pair1 = { key: "foo", diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js.diff index 78ebf16833..a78abeae77 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js.diff +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeIndexedAccess.js.diff @@ -5,7 +5,6 @@ //// [mappedTypeIndexedAccess.js] -"use strict"; --// Repro from #15756 + // Repro from #15756 // Error expected here - let pair1 = { - key: "foo", \ No newline at end of file + let pair1 = { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js b/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js index 9dc10b5e36..9559d67856 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js @@ -10,4 +10,5 @@ declare var h: HTML; h.div(h); //// [mappedTypeInferenceCircularity.js] +// Repro from #12511 h.div(h); diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js.diff deleted file mode 100644 index 42d3272a0b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeInferenceCircularity.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.mappedTypeInferenceCircularity.js -+++ new.mappedTypeInferenceCircularity.js -@@= skipped -9, +9 lines =@@ - h.div(h); - - //// [mappedTypeInferenceCircularity.js] --// Repro from #12511 - h.div(h); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js b/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js index 2be7e110b9..327d9b8d1b 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js @@ -16,5 +16,6 @@ const v = chain({a: 1, b: 2}).mapValues(square).value(); //// [mappedTypeNestedGenericInstantiation.js] +// Repro from #13346 const square = (x) => x * x; const v = chain({ a: 1, b: 2 }).mapValues(square).value(); diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js.diff deleted file mode 100644 index 5816153056..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeNestedGenericInstantiation.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.mappedTypeNestedGenericInstantiation.js -+++ new.mappedTypeNestedGenericInstantiation.js -@@= skipped -15, +15 lines =@@ - - - //// [mappedTypeNestedGenericInstantiation.js] --// Repro from #13346 - const square = (x) => x * x; - const v = chain({ a: 1, b: 2 }).mapValues(square).value(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js b/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js index 789c65e064..2573d7a36b 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js @@ -10,6 +10,7 @@ function foo(arg: U): MyMap { //// [mappedTypeParameterConstraint.js] +// Repro for #27596 function foo(arg) { return arg; } diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js.diff deleted file mode 100644 index 6ad2cc4e2a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeParameterConstraint.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.mappedTypeParameterConstraint.js -+++ new.mappedTypeParameterConstraint.js -@@= skipped -9, +9 lines =@@ - - - //// [mappedTypeParameterConstraint.js] --// Repro for #27596 - function foo(arg) { - return arg; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js b/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js index 535d8ce788..c4ba242b78 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js @@ -19,6 +19,7 @@ fn(MySubClass); //// [mappedTypePartialConstraints.js] +// Repro from #16985 class MyClass { doIt(data) { } } diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js.diff deleted file mode 100644 index 349a969b2d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mappedTypePartialConstraints.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.mappedTypePartialConstraints.js -+++ new.mappedTypePartialConstraints.js -@@= skipped -18, +18 lines =@@ - - - //// [mappedTypePartialConstraints.js] --// Repro from #16985 - class MyClass { - doIt(data) { } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js b/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js index 75b4ca83db..3ed298c154 100644 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js +++ b/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js @@ -22,4 +22,5 @@ const shouldFail: { important: boolean } = output.x.children; //// [mappedTypeWithCombinedTypeMappers.js] +// Repro from #13351 const shouldFail = output.x.children; diff --git a/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js.diff b/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js.diff deleted file mode 100644 index 5f380fbc01..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mappedTypeWithCombinedTypeMappers.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.mappedTypeWithCombinedTypeMappers.js -+++ new.mappedTypeWithCombinedTypeMappers.js -@@= skipped -21, +21 lines =@@ - - - //// [mappedTypeWithCombinedTypeMappers.js] --// Repro from #13351 - const shouldFail = output.x.children; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js b/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js index c7763285d2..0b12977d87 100644 --- a/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js +++ b/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js @@ -92,6 +92,7 @@ class Customer extends PersonMixin(Person) { //// [mixinPrivateAndProtected.js] +// Repro from #13830 class A { pb = 2; ptd = 1; diff --git a/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js.diff b/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js.diff index c9cd276f69..6756cce609 100644 --- a/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js.diff +++ b/testdata/baselines/reference/submodule/compiler/mixinPrivateAndProtected.js.diff @@ -1,10 +1,8 @@ --- old.mixinPrivateAndProtected.js +++ new.mixinPrivateAndProtected.js -@@= skipped -91, +91 lines =@@ - - +@@= skipped -93, +93 lines =@@ //// [mixinPrivateAndProtected.js] --// Repro from #13830 + // Repro from #13830 class A { - constructor() { - this.pb = 2; @@ -48,7 +46,7 @@ }; } const AB2C = mixC(AB2), ABC = mixC(AB); -@@= skipped -51, +39 lines =@@ +@@= skipped -49, +38 lines =@@ ab2c.pvt.toFixed(); // Error // Repro from #13924 class Person { diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js index 1de091ed9e..145596af3b 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js @@ -36,4 +36,5 @@ import moment = require("moment-timezone"); //// [idx.test.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js.diff index 74cfebc2a4..75ddb861bb 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationDuringSyntheticDefaultCheck.js.diff @@ -9,5 +9,4 @@ -Object.defineProperty(exports, "__esModule", { value: true }); //// [idx.test.js] "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); \ No newline at end of file + /// \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js index b1196c299a..310ddede4b 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js @@ -28,6 +28,7 @@ x.foo().x; //// [main.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); let x; x.foo().x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js.diff deleted file mode 100644 index d8f590916e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule1.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.moduleAugmentationInAmbientModule1.js -+++ new.moduleAugmentationInAmbientModule1.js -@@= skipped -27, +27 lines =@@ - - //// [main.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); - let x; - x.foo().x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js index f02b2a39a2..1f270b9f81 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js @@ -29,6 +29,7 @@ x.foo().x; //// [main.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); require("Map"); let x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js.diff index 5bb4aef0ec..d95b87e65e 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule2.js.diff @@ -1,11 +1,6 @@ --- old.moduleAugmentationInAmbientModule2.js +++ new.moduleAugmentationInAmbientModule2.js -@@= skipped -28, +28 lines =@@ - - //// [main.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); +@@= skipped -33, +33 lines =@@ require("Map"); let x; x.foo().x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js index 4dc2ba18b4..dda27d1c9f 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js @@ -39,6 +39,7 @@ x.foo2().x2; //// [main.js] "use strict"; +/// Object.defineProperty(exports, "__esModule", { value: true }); require("Map"); let x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js.diff index f9bab0626d..a7764856f2 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule3.js.diff @@ -1,12 +1,6 @@ --- old.moduleAugmentationInAmbientModule3.js +++ new.moduleAugmentationInAmbientModule3.js -@@= skipped -38, +38 lines =@@ - - //// [main.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); - require("Map"); +@@= skipped -44, +44 lines =@@ let x; x.foo().x; x.foo2().x2; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js index 7a452c7a49..68039aeea6 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js @@ -41,6 +41,8 @@ x.foo2().x2; //// [main.js] "use strict"; +/// +/// Object.defineProperty(exports, "__esModule", { value: true }); require("Map"); let x; diff --git a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js.diff b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js.diff index b88382915e..f2d1c8beab 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleAugmentationInAmbientModule4.js.diff @@ -1,13 +1,6 @@ --- old.moduleAugmentationInAmbientModule4.js +++ new.moduleAugmentationInAmbientModule4.js -@@= skipped -40, +40 lines =@@ - - //// [main.js] - "use strict"; --/// --/// - Object.defineProperty(exports, "__esModule", { value: true }); - require("Map"); +@@= skipped -47, +47 lines =@@ let x; x.foo().x; x.foo2().x2; diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js index de63c70176..31cdc9ec06 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js @@ -21,9 +21,9 @@ x = new C2(); //// [app.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); // We shouldn't resolve symlinks for references either. See the trace. /// +Object.defineProperty(exports, "__esModule", { value: true }); const linked_1 = require("linked"); const linked2_1 = require("linked2"); let x = new linked_1.C(); diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js.diff index 01db587117..eef0d9a16b 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js.diff +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.js.diff @@ -1,13 +1,9 @@ --- old.moduleResolutionWithSymlinks_preserveSymlinks.js +++ new.moduleResolutionWithSymlinks_preserveSymlinks.js -@@= skipped -20, +20 lines =@@ - - //// [app.js] - "use strict"; -+Object.defineProperty(exports, "__esModule", { value: true }); +@@= skipped -23, +23 lines =@@ // We shouldn't resolve symlinks for references either. See the trace. /// --Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports, "__esModule", { value: true }); -var linked_1 = require("linked"); -var linked2_1 = require("linked2"); +const linked_1 = require("linked"); diff --git a/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js b/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js index 1293db402c..29786c4222 100644 --- a/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js +++ b/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js @@ -11,5 +11,6 @@ bar = foo; //// [mutuallyRecursiveCallbacks.js] +// Repro from #18277 ; bar = foo; diff --git a/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js.diff b/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js.diff deleted file mode 100644 index 514e00850f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/mutuallyRecursiveCallbacks.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.mutuallyRecursiveCallbacks.js -+++ new.mutuallyRecursiveCallbacks.js -@@= skipped -10, +10 lines =@@ - - - //// [mutuallyRecursiveCallbacks.js] --// Repro from #18277 - ; - bar = foo; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js b/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js index 1883857f77..d8c5dac351 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js @@ -43,6 +43,7 @@ testFunc(); //// [narrowingAssignmentReadonlyRespectsAssertion.js] +// https://github.com/microsoft/TypeScript/issues/41984 function subDataFunc() { return [ { val1: "a", val2: ["a", "b", "c"] }, diff --git a/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js.diff deleted file mode 100644 index ee0de41a3e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/narrowingAssignmentReadonlyRespectsAssertion.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.narrowingAssignmentReadonlyRespectsAssertion.js -+++ new.narrowingAssignmentReadonlyRespectsAssertion.js -@@= skipped -42, +42 lines =@@ - - - //// [narrowingAssignmentReadonlyRespectsAssertion.js] --// https://github.com/microsoft/TypeScript/issues/41984 - function subDataFunc() { - return [ - { val1: "a", val2: ["a", "b", "c"] }, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js b/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js index 6f72b882e0..c0e686f486 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js @@ -88,6 +88,7 @@ function f2(x: A | B) { } //// [narrowingByDiscriminantInLoop.js] +// Repro from #9977 function insertInterface(callbackType) { for (const memberType of callbackType.members) { if (memberType.type === "const") { diff --git a/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js.diff deleted file mode 100644 index 4b13749fc3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/narrowingByDiscriminantInLoop.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.narrowingByDiscriminantInLoop.js -+++ new.narrowingByDiscriminantInLoop.js -@@= skipped -87, +87 lines =@@ - } - - //// [narrowingByDiscriminantInLoop.js] --// Repro from #9977 - function insertInterface(callbackType) { - for (const memberType of callbackType.members) { - if (memberType.type === "const") { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js b/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js index f430b1633d..9b76ba2a7a 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js @@ -20,6 +20,7 @@ export function speak(pet: TPet, voice: (pet: TPet) => string) //// [narrowingConstrainedTypeParameter.js] "use strict"; +// Repro from #10811 Object.defineProperty(exports, "__esModule", { value: true }); exports.speak = speak; function isPet(pet) { diff --git a/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js.diff deleted file mode 100644 index a91c8edb73..0000000000 --- a/testdata/baselines/reference/submodule/compiler/narrowingConstrainedTypeParameter.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.narrowingConstrainedTypeParameter.js -+++ new.narrowingConstrainedTypeParameter.js -@@= skipped -19, +19 lines =@@ - - //// [narrowingConstrainedTypeParameter.js] - "use strict"; --// Repro from #10811 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.speak = speak; - function isPet(pet) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js b/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js index 63c8c4a840..dcbd8a4ba2 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js @@ -145,6 +145,7 @@ function checksArrayOrObject2(obj: Record | Record[]) //// [narrowingMutualSubtypes.js] +// Check that `any` is a strict supertype of `unknown` const a1a = [ru1, ra1]; // { [x: string]: any }[] const a1b = [ra1, ru1]; // { [x: string]: any }[] const a2a = [ru2, ra2]; // { [x: string]: any }[] diff --git a/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js.diff index da7c361c5c..4d9bdd5433 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/narrowingMutualSubtypes.js.diff @@ -5,7 +5,6 @@ //// [narrowingMutualSubtypes.js] -"use strict"; --// Check that `any` is a strict supertype of `unknown` + // Check that `any` is a strict supertype of `unknown` const a1a = [ru1, ra1]; // { [x: string]: any }[] - const a1b = [ra1, ru1]; // { [x: string]: any }[] - const a2a = [ru2, ra2]; // { [x: string]: any }[] \ No newline at end of file + const a1b = [ra1, ru1]; // { [x: string]: any }[] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js b/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js index b2f8305403..9d85e8c2ff 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js @@ -89,6 +89,7 @@ function handleDogWorking(pet: Pet) { } //// [narrowingOfQualifiedNames.js] +// Repro from #43411 function init(properties) { if (properties.foo) { properties.foo; // type is { aaa: string; bbb: string; } diff --git a/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js.diff index 5ab38260dd..96f14aa958 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js.diff +++ b/testdata/baselines/reference/submodule/compiler/narrowingOfQualifiedNames.js.diff @@ -5,7 +5,6 @@ //// [narrowingOfQualifiedNames.js] -"use strict"; --// Repro from #43411 + // Repro from #43411 function init(properties) { - if (properties.foo) { - properties.foo; // type is { aaa: string; bbb: string; } \ No newline at end of file + if (properties.foo) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js b/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js index c90a2a17f6..85d56a02ee 100644 --- a/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js +++ b/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js @@ -33,6 +33,7 @@ new C().f(); //// [noAsConstNameLookup.js] +// Repros from #44292 export class FeatureRunner { cleaners = []; async runFeature() { diff --git a/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js.diff b/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js.diff index 6082f9529f..44f88e019b 100644 --- a/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js.diff +++ b/testdata/baselines/reference/submodule/compiler/noAsConstNameLookup.js.diff @@ -1,10 +1,9 @@ --- old.noAsConstNameLookup.js +++ new.noAsConstNameLookup.js -@@= skipped -32, +32 lines =@@ - +@@= skipped -33, +33 lines =@@ //// [noAsConstNameLookup.js] --// Repros from #44292 + // Repros from #44292 -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { diff --git a/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js b/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js index f55016cf9e..57885ddc12 100644 --- a/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js +++ b/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js @@ -19,4 +19,5 @@ const x: SomeLongOptionA //// [noErrorTruncation.js] +// @noErrorTruncation const x = 42; diff --git a/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js.diff b/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js.diff deleted file mode 100644 index f66891b2e7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/noErrorTruncation.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.noErrorTruncation.js -+++ new.noErrorTruncation.js -@@= skipped -18, +18 lines =@@ - - - //// [noErrorTruncation.js] --// @noErrorTruncation - const x = 42; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js b/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js index 650edc17d6..ef673963b3 100644 --- a/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js +++ b/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js @@ -18,6 +18,7 @@ function foo() { //// [noExcessiveStackDepthError.js] +// Repro from #46631 function foo() { var x; var x; // Excessive stack depth error not expected here diff --git a/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js.diff b/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js.diff index c6ce643aa2..8cf54fc688 100644 --- a/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js.diff +++ b/testdata/baselines/reference/submodule/compiler/noExcessiveStackDepthError.js.diff @@ -5,7 +5,6 @@ //// [noExcessiveStackDepthError.js] -"use strict"; --// Repro from #46631 + // Repro from #46631 function foo() { - var x; - var x; // Excessive stack depth error not expected here \ No newline at end of file + var x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js index bed03832af..564f12939c 100644 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js +++ b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js @@ -18,6 +18,7 @@ interface IFoo { ({ c: null }); //// [noImplicitAnyInCastExpression.js] +// verify no noImplictAny errors reported with cast expression // Expr type not assignable to target type (({ a: null })); // Expr type assignable to target type diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff index 6bb1eb9514..6b86be5482 100644 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff +++ b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff @@ -1,10 +1,8 @@ --- old.noImplicitAnyInCastExpression.js +++ new.noImplicitAnyInCastExpression.js -@@= skipped -17, +17 lines =@@ - ({ c: null }); - +@@= skipped -19, +19 lines =@@ //// [noImplicitAnyInCastExpression.js] --// verify no noImplictAny errors reported with cast expression + // verify no noImplictAny errors reported with cast expression // Expr type not assignable to target type -({ a: null }); +(({ a: null })); diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js index 9ee99aa2ad..cc81c52b2d 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js +++ b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js @@ -20,3 +20,4 @@ type TestOld = NonNullableOld; //// [nonNullableAndObjectIntersections.js] +// These should all resolve to never diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js.diff b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js.diff deleted file mode 100644 index 2d6395f613..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=false).js.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.nonNullableAndObjectIntersections(strict=false).js -+++ new.nonNullableAndObjectIntersections(strict=false).js -@@= skipped -19, +19 lines =@@ - - - //// [nonNullableAndObjectIntersections.js] --// These should all resolve to never \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js index 9ee99aa2ad..cc81c52b2d 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js +++ b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js @@ -20,3 +20,4 @@ type TestOld = NonNullableOld; //// [nonNullableAndObjectIntersections.js] +// These should all resolve to never diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js.diff b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js.diff index 1ff55a894a..900254fa63 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js.diff +++ b/testdata/baselines/reference/submodule/compiler/nonNullableAndObjectIntersections(strict=true).js.diff @@ -5,4 +5,4 @@ //// [nonNullableAndObjectIntersections.js] -"use strict"; --// These should all resolve to never \ No newline at end of file + // These should all resolve to never \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js b/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js index 7bcb5236cc..f86e844830 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js +++ b/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js @@ -21,6 +21,7 @@ function f2(x: T | U) { //// [nonNullableReduction.js] +// Repros from #43425 function test(f1, f2) { f1 === null || f1 === void 0 ? void 0 : f1("hello"); f2 === null || f2 === void 0 ? void 0 : f2("hello"); diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js.diff b/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js.diff index 764ced1140..3e74c451a1 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js.diff +++ b/testdata/baselines/reference/submodule/compiler/nonNullableReduction.js.diff @@ -5,7 +5,6 @@ //// [nonNullableReduction.js] -"use strict"; --// Repros from #43425 + // Repros from #43425 function test(f1, f2) { - f1 === null || f1 === void 0 ? void 0 : f1("hello"); - f2 === null || f2 === void 0 ? void 0 : f2("hello"); \ No newline at end of file + f1 === null || f1 === void 0 ? void 0 : f1("hello"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js b/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js index 4bec3fee12..21567dfc36 100644 --- a/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js +++ b/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js @@ -21,6 +21,7 @@ function f2(x: T | U) { //// [nonNullableReductionNonStrict.js] +// Repros from #43425 function test(f1, f2) { f1 === null || f1 === void 0 ? void 0 : f1("hello"); f2 === null || f2 === void 0 ? void 0 : f2("hello"); diff --git a/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js.diff b/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js.diff deleted file mode 100644 index 4dc8446649..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nonNullableReductionNonStrict.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nonNullableReductionNonStrict.js -+++ new.nonNullableReductionNonStrict.js -@@= skipped -20, +20 lines =@@ - - - //// [nonNullableReductionNonStrict.js] --// Repros from #43425 - function test(f1, f2) { - f1 === null || f1 === void 0 ? void 0 : f1("hello"); - f2 === null || f2 === void 0 ? void 0 : f2("hello"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js b/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js index 3e390e8835..2311c833d4 100644 --- a/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js +++ b/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js @@ -40,5 +40,6 @@ const comp = ctor({ common: "ok", ref: x => console.log(x) }); //// [normalizedIntersectionTooComplex.js] +// Repro from #30050 const ctor = getCtor(all); const comp = ctor({ common: "ok", ref: x => console.log(x) }); diff --git a/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js.diff b/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js.diff index 051b1d5c7b..7a16b5202b 100644 --- a/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js.diff +++ b/testdata/baselines/reference/submodule/compiler/normalizedIntersectionTooComplex.js.diff @@ -5,6 +5,6 @@ //// [normalizedIntersectionTooComplex.js] -"use strict"; --// Repro from #30050 + // Repro from #30050 const ctor = getCtor(all); const comp = ctor({ common: "ok", ref: x => console.log(x) }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js b/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js index e2c3fab75f..6f130b2f07 100644 --- a/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js +++ b/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js @@ -23,6 +23,7 @@ function f2(a: Item[]) { //// [objectInstantiationFromUnionSpread.js] +// #40995 var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { diff --git a/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js.diff b/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js.diff deleted file mode 100644 index 687778aa18..0000000000 --- a/testdata/baselines/reference/submodule/compiler/objectInstantiationFromUnionSpread.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.objectInstantiationFromUnionSpread.js -+++ new.objectInstantiationFromUnionSpread.js -@@= skipped -22, +22 lines =@@ - - - //// [objectInstantiationFromUnionSpread.js] --// #40995 - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/observableInferenceCanBeMade.js b/testdata/baselines/reference/submodule/compiler/observableInferenceCanBeMade.js index 7264b96672..164218ef75 100644 --- a/testdata/baselines/reference/submodule/compiler/observableInferenceCanBeMade.js +++ b/testdata/baselines/reference/submodule/compiler/observableInferenceCanBeMade.js @@ -24,6 +24,7 @@ function asObservable(input: string | ObservableInput): Observable; //// [optionalTupleElementsAndUndefined.js] +// Repro from #50753 // Types in the following declarations should be identical var v; var v; diff --git a/testdata/baselines/reference/submodule/compiler/optionalTupleElementsAndUndefined.js.diff b/testdata/baselines/reference/submodule/compiler/optionalTupleElementsAndUndefined.js.diff index bfc6e4e9c1..4f6d46b1af 100644 --- a/testdata/baselines/reference/submodule/compiler/optionalTupleElementsAndUndefined.js.diff +++ b/testdata/baselines/reference/submodule/compiler/optionalTupleElementsAndUndefined.js.diff @@ -5,7 +5,6 @@ //// [optionalTupleElementsAndUndefined.js] -"use strict"; --// Repro from #50753 + // Repro from #50753 // Types in the following declarations should be identical - var v; var v; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js b/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js index 77afe5d4c1..2149a45d3f 100644 --- a/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js +++ b/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js @@ -17,6 +17,7 @@ var r2: I1 = v1.func(num => num.toString()) // Correctly returns an I1 num.toString()) // Correctly returns an I1 .func(str => str.length); // should error var r2 = v1.func(num => num.toString()) // Correctly returns an I1 diff --git a/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js.diff b/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js.diff deleted file mode 100644 index fd6459403f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/overEagerReturnTypeSpecialization.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.overEagerReturnTypeSpecialization.js -+++ new.overEagerReturnTypeSpecialization.js -@@= skipped -16, +16 lines =@@ - - - //// [overEagerReturnTypeSpecialization.js] --//Note: Below simpler repro - var r1 = v1.func(num => num.toString()) // Correctly returns an I1 - .func(str => str.length); // should error - var r2 = v1.func(num => num.toString()) // Correctly returns an I1 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js b/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js index b5bbdf7bae..e489e06f7e 100644 --- a/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js +++ b/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js @@ -33,6 +33,7 @@ class Foo extends WithLocation(Point) { //// [overrideBaseIntersectionMethod.js] +// Repro from #14615 const WithLocation = (Base) => class extends Base { getLocation() { const [x, y] = super.getLocation(); diff --git a/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js.diff b/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js.diff index b118e12b91..a0f6970bcd 100644 --- a/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js.diff +++ b/testdata/baselines/reference/submodule/compiler/overrideBaseIntersectionMethod.js.diff @@ -5,11 +5,10 @@ //// [overrideBaseIntersectionMethod.js] -"use strict"; --// Repro from #14615 + // Repro from #14615 const WithLocation = (Base) => class extends Base { getLocation() { - const [x, y] = super.getLocation(); -@@= skipped -9, +7 lines =@@ +@@= skipped -9, +8 lines =@@ } }; class Point { diff --git a/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js b/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js index 9d4a79077a..d12035cbfc 100644 --- a/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js +++ b/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js @@ -49,6 +49,7 @@ function fail(s: Shapes) { } //// [partiallyDiscriminantedUnions.js] +// Repro from #10586 const ab = {}; if (ab.type === 'a') { if (ab.subtype === 2) { diff --git a/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js.diff b/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js.diff index d58efbc512..38fb47a0ff 100644 --- a/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js.diff +++ b/testdata/baselines/reference/submodule/compiler/partiallyDiscriminantedUnions.js.diff @@ -1,14 +1,6 @@ --- old.partiallyDiscriminantedUnions.js +++ new.partiallyDiscriminantedUnions.js -@@= skipped -48, +48 lines =@@ - } - - //// [partiallyDiscriminantedUnions.js] --// Repro from #10586 - const ab = {}; - if (ab.type === 'a') { - if (ab.subtype === 2) { -@@= skipped -9, +8 lines =@@ +@@= skipped -57, +57 lines =@@ } // Repro from #11185 class Square { diff --git a/testdata/baselines/reference/submodule/compiler/pinnedComments1.js b/testdata/baselines/reference/submodule/compiler/pinnedComments1.js index 3ed3f3a3de..ece697b096 100644 --- a/testdata/baselines/reference/submodule/compiler/pinnedComments1.js +++ b/testdata/baselines/reference/submodule/compiler/pinnedComments1.js @@ -12,5 +12,9 @@ class C { } //// [pinnedComments1.js] +/*!========= + Keep this pinned comment + ========= +*/ class C { } diff --git a/testdata/baselines/reference/submodule/compiler/pinnedComments1.js.diff b/testdata/baselines/reference/submodule/compiler/pinnedComments1.js.diff deleted file mode 100644 index 3ad1398649..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pinnedComments1.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.pinnedComments1.js -+++ new.pinnedComments1.js -@@= skipped -11, +11 lines =@@ - } - - //// [pinnedComments1.js] --/*!========= -- Keep this pinned comment -- ========= --*/ - class C { - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js b/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js index dde8372257..427974daad 100644 --- a/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js +++ b/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js @@ -11,6 +11,7 @@ const result = getInterfaceFromString({ type: 'two' }); //// [primitiveUnionDetection.js] +// Repro from #46624 const result = getInterfaceFromString({ type: 'two' }); diff --git a/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js.diff b/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js.diff index aeca5c77dd..7beb348355 100644 --- a/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js.diff +++ b/testdata/baselines/reference/submodule/compiler/primitiveUnionDetection.js.diff @@ -5,6 +5,5 @@ //// [primitiveUnionDetection.js] -"use strict"; --// Repro from #46624 + // Repro from #46624 const result = getInterfaceFromString({ type: 'two' }); - diff --git a/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js b/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js index 18aaae481f..349c9d265f 100644 --- a/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js +++ b/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js @@ -17,6 +17,7 @@ type __ValueDescriptorType = T extends ISyncableObjec //// [privatePropertyInUnion.js] +// Repro from #38236 class SyncableObject { foo; } diff --git a/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js.diff b/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js.diff index c63b589247..72a48f34b7 100644 --- a/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js.diff +++ b/testdata/baselines/reference/submodule/compiler/privatePropertyInUnion.js.diff @@ -5,7 +5,7 @@ //// [privatePropertyInUnion.js] -"use strict"; --// Repro from #38236 + // Repro from #38236 class SyncableObject { + foo; } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/promisePermutations2.js b/testdata/baselines/reference/submodule/compiler/promisePermutations2.js index d09a581506..7918ffb468 100644 --- a/testdata/baselines/reference/submodule/compiler/promisePermutations2.js +++ b/testdata/baselines/reference/submodule/compiler/promisePermutations2.js @@ -169,6 +169,7 @@ var s12b = s12.then(testFunction12P, testFunction12P, testFunction12P); // ok var s12c = s12.then(testFunction12P, testFunction12, testFunction12); // ok //// [promisePermutations2.js] +// same as promisePermutations but without the same overloads in Promise var r1; var r1a = r1.then(testFunction, testFunction, testFunction); var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); diff --git a/testdata/baselines/reference/submodule/compiler/promisePermutations2.js.diff b/testdata/baselines/reference/submodule/compiler/promisePermutations2.js.diff deleted file mode 100644 index 2cddc5a770..0000000000 --- a/testdata/baselines/reference/submodule/compiler/promisePermutations2.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.promisePermutations2.js -+++ new.promisePermutations2.js -@@= skipped -168, +168 lines =@@ - var s12c = s12.then(testFunction12P, testFunction12, testFunction12); // ok - - //// [promisePermutations2.js] --// same as promisePermutations but without the same overloads in Promise - var r1; - var r1a = r1.then(testFunction, testFunction, testFunction); - var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/promisePermutations3.js b/testdata/baselines/reference/submodule/compiler/promisePermutations3.js index a76a406dc2..d752ccddfd 100644 --- a/testdata/baselines/reference/submodule/compiler/promisePermutations3.js +++ b/testdata/baselines/reference/submodule/compiler/promisePermutations3.js @@ -169,6 +169,7 @@ var s12b = s12.then(testFunction12P, testFunction12P, testFunction12P); // ok var s12c = s12.then(testFunction12P, testFunction12, testFunction12); // ok //// [promisePermutations3.js] +// same as promisePermutations but without the same overloads in IPromise var r1; var r1a = r1.then(testFunction, testFunction, testFunction); var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); diff --git a/testdata/baselines/reference/submodule/compiler/promisePermutations3.js.diff b/testdata/baselines/reference/submodule/compiler/promisePermutations3.js.diff deleted file mode 100644 index 6a42aa7cf3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/promisePermutations3.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.promisePermutations3.js -+++ new.promisePermutations3.js -@@= skipped -168, +168 lines =@@ - var s12c = s12.then(testFunction12P, testFunction12, testFunction12); // ok - - //// [promisePermutations3.js] --// same as promisePermutations but without the same overloads in IPromise - var r1; - var r1a = r1.then(testFunction, testFunction, testFunction); - var r1b = r1.then(testFunction, testFunction, testFunction).then(testFunction, testFunction, testFunction); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js b/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js index ef4cb2f788..72a4c4084d 100644 --- a/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js +++ b/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js @@ -72,11 +72,11 @@ const Test5 = () => ; //// [reactDefaultPropsInferenceSuccess.js] "use strict"; +/// var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -/// const react_1 = __importDefault(require("react")); class FieldFeedback extends react_1.default.Component { static defaultProps = { diff --git a/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js.diff b/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js.diff index f18ce8f09c..c556e5e7d2 100644 --- a/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactDefaultPropsInferenceSuccess.js.diff @@ -1,11 +1,6 @@ --- old.reactDefaultPropsInferenceSuccess.js +++ new.reactDefaultPropsInferenceSuccess.js -@@= skipped -71, +71 lines =@@ - - //// [reactDefaultPropsInferenceSuccess.js] - "use strict"; --/// - var __importDefault = (this && this.__importDefault) || function (mod) { +@@= skipped -76, +76 lines =@@ return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); @@ -17,7 +12,6 @@ - } - } - FieldFeedback.defaultProps = { -+/// +const react_1 = __importDefault(require("react")); +class FieldFeedback extends react_1.default.Component { + static defaultProps = { diff --git a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js index 348085d966..366d48ac9a 100644 --- a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js +++ b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js @@ -29,8 +29,8 @@ const RandomComponent: React.SFC = () => { //// [reactSFCAndFunctionResolvable.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const RandomComponent = () => { const Component = condition1 diff --git a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff index e0547d01bf..6d6fd84e25 100644 --- a/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactSFCAndFunctionResolvable.js.diff @@ -1,13 +1,10 @@ --- old.reactSFCAndFunctionResolvable.js +++ new.reactSFCAndFunctionResolvable.js -@@= skipped -28, +28 lines =@@ - - //// [reactSFCAndFunctionResolvable.js] +@@= skipped -30, +30 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); const RandomComponent = () => { const Component = condition1 diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js index c7411537fb..07eb8f5ce7 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js @@ -15,6 +15,7 @@ const children: any[] = []; //// [reactTagNameComponentWithPropsNoOOM.js] "use strict"; +/// var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -27,7 +28,6 @@ var __assign = (this && this.__assign) || function () { return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -/// const React = require("react"); const classes = ""; const rest = {}; diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff index 6f68ebc762..95bdd6f6ec 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM.js.diff @@ -1,19 +1,10 @@ --- old.reactTagNameComponentWithPropsNoOOM.js +++ new.reactTagNameComponentWithPropsNoOOM.js -@@= skipped -14, +14 lines =@@ - - //// [reactTagNameComponentWithPropsNoOOM.js] - "use strict"; --/// - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -13, +12 lines =@@ +@@= skipped -27, +27 lines =@@ return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); const classes = ""; const rest = {}; diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js index 39837e0ce6..f7ab3ffc65 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js @@ -15,6 +15,7 @@ const children: any[] = []; //// [reactTagNameComponentWithPropsNoOOM2.js] "use strict"; +/// var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -27,7 +28,6 @@ var __assign = (this && this.__assign) || function () { return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -/// const React = require("react"); const classes = ""; const rest = {}; diff --git a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff index b3845ebbe9..ccc77b4289 100644 --- a/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reactTagNameComponentWithPropsNoOOM2.js.diff @@ -1,19 +1,10 @@ --- old.reactTagNameComponentWithPropsNoOOM2.js +++ new.reactTagNameComponentWithPropsNoOOM2.js -@@= skipped -14, +14 lines =@@ - - //// [reactTagNameComponentWithPropsNoOOM2.js] - "use strict"; --/// - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -13, +12 lines =@@ +@@= skipped -27, +27 lines =@@ return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); -var React = require("react"); -+/// +const React = require("react"); const classes = ""; const rest = {}; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js b/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js index 7543db73ac..30721da2df 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js @@ -24,6 +24,7 @@ class Derived1 extends class extends Base1 { //// [recursiveClassBaseType.js] +// Repro from #44281 class C extends Base({ x: p(() => []) }) { } // Repro from #44359 diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js.diff index bc446c4de3..4dd8f82a35 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassBaseType.js.diff @@ -5,7 +5,6 @@ //// [recursiveClassBaseType.js] -"use strict"; --// Repro from #44281 + // Repro from #44281 class C extends Base({ x: p(() => []) }) { - } - // Repro from #44359 \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js index 4efd88da4f..10f5f4901e 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js @@ -105,6 +105,8 @@ module Sample.Thing.Languages.PlainText { //// [recursiveClassReferenceTest.js] +// Scenario 1: Test reqursive function call with "this" parameter +// Scenario 2: Test recursive function call with cast and "this" parameter var Sample; (function (Sample) { let Actions; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.diff index f84a83dbf4..1e6a1cb30c 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.diff @@ -1,11 +1,7 @@ --- old.recursiveClassReferenceTest.js +++ new.recursiveClassReferenceTest.js -@@= skipped -104, +104 lines =@@ - - - //// [recursiveClassReferenceTest.js] --// Scenario 1: Test reqursive function call with "this" parameter --// Scenario 2: Test recursive function call with cast and "this" parameter +@@= skipped -108, +108 lines =@@ + // Scenario 2: Test recursive function call with cast and "this" parameter var Sample; (function (Sample) { - var Actions; @@ -19,7 +15,7 @@ (function (Find) { class StartFindAction { getId() { return "yo"; } -@@= skipped -22, +20 lines =@@ +@@= skipped -18, +18 lines =@@ })(Actions = Sample.Actions || (Sample.Actions = {})); })(Sample || (Sample = {})); (function (Sample) { diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map index b9bf4e1da0..c31f8b7c9d 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map @@ -1,3 +1,3 @@ //// [recursiveClassReferenceTest.js.map] -{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AA+BA,IAAO,MAUN;AAVD,WAAO,MAAM,EA1Bb;IA0Bc,IAAA,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dGlvbnM7DQogICAgKGZ1bmN0aW9uIChBY3Rpb25zKSB7DQogICAgICAgIGxldCBUaGluZzsNCiAgICAgICAgKGZ1bmN0aW9uIChUaGluZ18xKSB7DQogICAgICAgICAgICBsZXQgRmluZDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoRmluZCkgew0KICAgICAgICAgICAgICAgIGNsYXNzIFN0YXJ0RmluZEFjdGlvbiB7DQogICAgICAgICAgICAgICAgICAgIGdldElkKCkgeyByZXR1cm4gInlvIjsgfQ0KICAgICAgICAgICAgICAgICAgICBydW4oVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIEZpbmQuU3RhcnRGaW5kQWN0aW9uID0gU3RhcnRGaW5kQWN0aW9uOw0KICAgICAgICAgICAgfSkoRmluZCA9IFRoaW5nXzEuRmluZCB8fCAoVGhpbmdfMS5GaW5kID0ge30pKTsNCiAgICAgICAgfSkoVGhpbmcgPSBBY3Rpb25zLlRoaW5nIHx8IChBY3Rpb25zLlRoaW5nID0ge30pKTsNCiAgICB9KShBY3Rpb25zID0gU2FtcGxlLkFjdGlvbnMgfHwgKFNhbXBsZS5BY3Rpb25zID0ge30pKTsNCn0pKFNhbXBsZSB8fCAoU2FtcGxlID0ge30pKTsNCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgbGV0IFRoaW5nOw0KICAgIChmdW5jdGlvbiAoVGhpbmcpIHsNCiAgICAgICAgbGV0IFdpZGdldHM7DQogICAgICAgIChmdW5jdGlvbiAoV2lkZ2V0cykgew0KICAgICAgICAgICAgY2xhc3MgRmluZFdpZGdldCB7DQogICAgICAgICAgICAgICAgY29kZVRoaW5nOw0KICAgICAgICAgICAgICAgIGdhcihydW5uZXIpIHsgaWYgKHRydWUpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJ1bm5lcih0aGlzKTsNCiAgICAgICAgICAgICAgICB9IH0NCiAgICAgICAgICAgICAgICBkb21Ob2RlID0gbnVsbDsNCiAgICAgICAgICAgICAgICBjb25zdHJ1Y3Rvcihjb2RlVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb2RlVGhpbmcgPSBjb2RlVGhpbmc7DQogICAgICAgICAgICAgICAgICAgIC8vIHNjZW5hcmlvIDENCiAgICAgICAgICAgICAgICAgICAgY29kZVRoaW5nLmFkZFdpZGdldCgiYWRkV2lkZ2V0IiwgdGhpcyk7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGdldERvbU5vZGUoKSB7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBkb21Ob2RlOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBkZXN0cm95KCkgew0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIFdpZGdldHMuRmluZFdpZGdldCA9IEZpbmRXaWRnZXQ7DQogICAgICAgIH0pKFdpZGdldHMgPSBUaGluZy5XaWRnZXRzIHx8IChUaGluZy5XaWRnZXRzID0ge30pKTsNCiAgICB9KShUaGluZyA9IFNhbXBsZS5UaGluZyB8fCAoU2FtcGxlLlRoaW5nID0ge30pKTsNCn0pKFNhbXBsZSB8fCAoU2FtcGxlID0ge30pKTsNCmNsYXNzIEFic3RyYWN0TW9kZSB7DQogICAgZ2V0SW5pdGlhbFN0YXRlKCkgeyByZXR1cm4gbnVsbDsgfQ0KfQ0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICBsZXQgTGFuZ3VhZ2VzOw0KICAgICAgICAoZnVuY3Rpb24gKExhbmd1YWdlcykgew0KICAgICAgICAgICAgbGV0IFBsYWluVGV4dDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoUGxhaW5UZXh0KSB7DQogICAgICAgICAgICAgICAgY2xhc3MgU3RhdGUgew0KICAgICAgICAgICAgICAgICAgICBtb2RlOw0KICAgICAgICAgICAgICAgICAgICBjb25zdHJ1Y3Rvcihtb2RlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1vZGUgPSBtb2RlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIGNsb25lKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgZXF1YWxzKG90aGVyKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcyA9PT0gb3RoZXI7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgZ2V0TW9kZSgpIHsgcmV0dXJuIG1vZGU7IH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgUGxhaW5UZXh0LlN0YXRlID0gU3RhdGU7DQogICAgICAgICAgICAgICAgY2xhc3MgTW9kZSBleHRlbmRzIEFic3RyYWN0TW9kZSB7DQogICAgICAgICAgICAgICAgICAgIC8vIHNjZW5hcmlvIDINCiAgICAgICAgICAgICAgICAgICAgZ2V0SW5pdGlhbFN0YXRlKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTdGF0ZShzZWxmKTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBQbGFpblRleHQuTW9kZSA9IE1vZGU7DQogICAgICAgICAgICB9KShQbGFpblRleHQgPSBMYW5ndWFnZXMuUGxhaW5UZXh0IHx8IChMYW5ndWFnZXMuUGxhaW5UZXh0ID0ge30pKTsNCiAgICAgICAgfSkoTGFuZ3VhZ2VzID0gVGhpbmcuTGFuZ3VhZ2VzIHx8IChUaGluZy5MYW5ndWFnZXMgPSB7fSkpOw0KICAgIH0pKFRoaW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Y,UAAA,KAAK,QAWjB,CAAA;gBAED,MAAa,IAAK,SAAQ,YAAY;oBAErC,aAAa;oBACN,eAAe,GAAW;wBAChC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBAAA,CACvB;iBAGD;gBARY,UAAA,IAAI,OAQhB,CAAA;YAAA,CACD,EAxB6B,SAAS,GAAT,UAAA,SAAS,KAAT,UAAA,SAAS,QAwBtC;QADC,CACF,AAnGA,EA2EoB,SAAS,GAAT,MAAA,SAAS,KAAT,MAAA,SAAS,QAwB5B;IADC,CACF,AAnGA,EA2Ec,KAAK,GAAL,OAAA,KAAK,KAAL,OAAA,KAAK,QAwBlB;AADC,CACF,AAnGA,EA2EO,MAAM,KAAN,MAAM,QAwBZ"} +//// https://sokra.github.io/source-map-visualization#base64,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXINCi8vIFNjZW5hcmlvIDI6IFRlc3QgcmVjdXJzaXZlIGZ1bmN0aW9uIGNhbGwgd2l0aCBjYXN0IGFuZCAidGhpcyIgcGFyYW1ldGVyDQp2YXIgU2FtcGxlOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgQWN0aW9uczsNCiAgICAoZnVuY3Rpb24gKEFjdGlvbnMpIHsNCiAgICAgICAgbGV0IFRoaW5nOw0KICAgICAgICAoZnVuY3Rpb24gKFRoaW5nXzEpIHsNCiAgICAgICAgICAgIGxldCBGaW5kOw0KICAgICAgICAgICAgKGZ1bmN0aW9uIChGaW5kKSB7DQogICAgICAgICAgICAgICAgY2xhc3MgU3RhcnRGaW5kQWN0aW9uIHsNCiAgICAgICAgICAgICAgICAgICAgZ2V0SWQoKSB7IHJldHVybiAieW8iOyB9DQogICAgICAgICAgICAgICAgICAgIHJ1bihUaGluZykgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgRmluZC5TdGFydEZpbmRBY3Rpb24gPSBTdGFydEZpbmRBY3Rpb247DQogICAgICAgICAgICB9KShGaW5kID0gVGhpbmdfMS5GaW5kIHx8IChUaGluZ18xLkZpbmQgPSB7fSkpOw0KICAgICAgICB9KShUaGluZyA9IEFjdGlvbnMuVGhpbmcgfHwgKEFjdGlvbnMuVGhpbmcgPSB7fSkpOw0KICAgIH0pKEFjdGlvbnMgPSBTYW1wbGUuQWN0aW9ucyB8fCAoU2FtcGxlLkFjdGlvbnMgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICBsZXQgV2lkZ2V0czsNCiAgICAgICAgKGZ1bmN0aW9uIChXaWRnZXRzKSB7DQogICAgICAgICAgICBjbGFzcyBGaW5kV2lkZ2V0IHsNCiAgICAgICAgICAgICAgICBjb2RlVGhpbmc7DQogICAgICAgICAgICAgICAgZ2FyKHJ1bm5lcikgeyBpZiAodHJ1ZSkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gcnVubmVyKHRoaXMpOw0KICAgICAgICAgICAgICAgIH0gfQ0KICAgICAgICAgICAgICAgIGRvbU5vZGUgPSBudWxsOw0KICAgICAgICAgICAgICAgIGNvbnN0cnVjdG9yKGNvZGVUaGluZykgew0KICAgICAgICAgICAgICAgICAgICB0aGlzLmNvZGVUaGluZyA9IGNvZGVUaGluZzsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMQ0KICAgICAgICAgICAgICAgICAgICBjb2RlVGhpbmcuYWRkV2lkZ2V0KCJhZGRXaWRnZXQiLCB0aGlzKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZ2V0RG9tTm9kZSgpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRvbU5vZGU7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGRlc3Ryb3koKSB7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgV2lkZ2V0cy5GaW5kV2lkZ2V0ID0gRmluZFdpZGdldDsNCiAgICAgICAgfSkoV2lkZ2V0cyA9IFRoaW5nLldpZGdldHMgfHwgKFRoaW5nLldpZGdldHMgPSB7fSkpOw0KICAgIH0pKFRoaW5nID0gU2FtcGxlLlRoaW5nIHx8IChTYW1wbGUuVGhpbmcgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KY2xhc3MgQWJzdHJhY3RNb2RlIHsNCiAgICBnZXRJbml0aWFsU3RhdGUoKSB7IHJldHVybiBudWxsOyB9DQp9DQooZnVuY3Rpb24gKFNhbXBsZSkgew0KICAgIGxldCBUaGluZzsNCiAgICAoZnVuY3Rpb24gKFRoaW5nKSB7DQogICAgICAgIGxldCBMYW5ndWFnZXM7DQogICAgICAgIChmdW5jdGlvbiAoTGFuZ3VhZ2VzKSB7DQogICAgICAgICAgICBsZXQgUGxhaW5UZXh0Ow0KICAgICAgICAgICAgKGZ1bmN0aW9uIChQbGFpblRleHQpIHsNCiAgICAgICAgICAgICAgICBjbGFzcyBTdGF0ZSB7DQogICAgICAgICAgICAgICAgICAgIG1vZGU7DQogICAgICAgICAgICAgICAgICAgIGNvbnN0cnVjdG9yKG1vZGUpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubW9kZSA9IG1vZGU7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgY2xvbmUoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpczsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBlcXVhbHMob3RoZXIpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzID09PSBvdGhlcjsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBnZXRNb2RlKCkgeyByZXR1cm4gbW9kZTsgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBQbGFpblRleHQuU3RhdGUgPSBTdGF0ZTsNCiAgICAgICAgICAgICAgICBjbGFzcyBNb2RlIGV4dGVuZHMgQWJzdHJhY3RNb2RlIHsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMg0KICAgICAgICAgICAgICAgICAgICBnZXRJbml0aWFsU3RhdGUoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFN0YXRlKHNlbGYpOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIFBsYWluVGV4dC5Nb2RlID0gTW9kZTsNCiAgICAgICAgICAgIH0pKFBsYWluVGV4dCA9IExhbmd1YWdlcy5QbGFpblRleHQgfHwgKExhbmd1YWdlcy5QbGFpblRleHQgPSB7fSkpOw0KICAgICAgICB9KShMYW5ndWFnZXMgPSBUaGluZy5MYW5ndWFnZXMgfHwgKFRoaW5nLkxhbmd1YWdlcyA9IHt9KSk7DQogICAgfSkoVGhpbmcgPSBTYW1wbGUuVGhpbmcgfHwgKFNhbXBsZS5UaGluZyA9IHt9KSk7DQp9KShTYW1wbGUgfHwgKFNhbXBsZSA9IHt9KSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1yZWN1cnNpdmVDbGFzc1JlZmVyZW5jZVRlc3QuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJ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Cg== diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map.diff b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map.diff index 3d6581c251..041b9d080b 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.js.map.diff @@ -4,5 +4,5 @@ //// [recursiveClassReferenceTest.js.map] -{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI;gBAC/B,MAAa,eAAe;oBAEpB,KAAK,KAAK,OAAO,IAAI,CAAC,CAAC,CAAC;oBAExB,GAAG,CAAC,KAA6B;wBAEvC,OAAO,IAAI,CAAC;oBACb,CAAC;iBACD;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO;YAC1B,MAAa,UAAU;gBAEf,GAAG,CAAC,MAAyC,IAAI,IAAI,IAAI,EAAE,CAAC;oBAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAGzF,YAAoB,SAAkC;oBAAlC,cAAS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GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"} -//// https://sokra.github.io/source-map-visualization#base64,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXINCi8vIFNjZW5hcmlvIDI6IFRlc3QgcmVjdXJzaXZlIGZ1bmN0aW9uIGNhbGwgd2l0aCBjYXN0IGFuZCAidGhpcyIgcGFyYW1ldGVyDQp2YXIgU2FtcGxlOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgQWN0aW9uczsNCiAgICAoZnVuY3Rpb24gKEFjdGlvbnMpIHsNCiAgICAgICAgdmFyIFRoaW5nOw0KICAgICAgICAoZnVuY3Rpb24gKFRoaW5nXzEpIHsNCiAgICAgICAgICAgIHZhciBGaW5kOw0KICAgICAgICAgICAgKGZ1bmN0aW9uIChGaW5kKSB7DQogICAgICAgICAgICAgICAgY2xhc3MgU3RhcnRGaW5kQWN0aW9uIHsNCiAgICAgICAgICAgICAgICAgICAgZ2V0SWQoKSB7IHJldHVybiAieW8iOyB9DQogICAgICAgICAgICAgICAgICAgIHJ1bihUaGluZykgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgRmluZC5TdGFydEZpbmRBY3Rpb24gPSBTdGFydEZpbmRBY3Rpb247DQogICAgICAgICAgICB9KShGaW5kID0gVGhpbmdfMS5GaW5kIHx8IChUaGluZ18xLkZpbmQgPSB7fSkpOw0KICAgICAgICB9KShUaGluZyA9IEFjdGlvbnMuVGhpbmcgfHwgKEFjdGlvbnMuVGhpbmcgPSB7fSkpOw0KICAgIH0pKEFjdGlvbnMgPSBTYW1wbGUuQWN0aW9ucyB8fCAoU2FtcGxlLkFjdGlvbnMgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICB2YXIgV2lkZ2V0czsNCiAgICAgICAgKGZ1bmN0aW9uIChXaWRnZXRzKSB7DQogICAgICAgICAgICBjbGFzcyBGaW5kV2lkZ2V0IHsNCiAgICAgICAgICAgICAgICBnYXIocnVubmVyKSB7IGlmICh0cnVlKSB7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBydW5uZXIodGhpcyk7DQogICAgICAgICAgICAgICAgfSB9DQogICAgICAgICAgICAgICAgY29uc3RydWN0b3IoY29kZVRoaW5nKSB7DQogICAgICAgICAgICAgICAgICAgIHRoaXMuY29kZVRoaW5nID0gY29kZVRoaW5nOw0KICAgICAgICAgICAgICAgICAgICB0aGlzLmRvbU5vZGUgPSBudWxsOw0KICAgICAgICAgICAgICAgICAgICAvLyBzY2VuYXJpbyAxDQogICAgICAgICAgICAgICAgICAgIGNvZGVUaGluZy5hZGRXaWRnZXQoImFkZFdpZGdldCIsIHRoaXMpOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBnZXREb21Ob2RlKCkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZG9tTm9kZTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZGVzdHJveSgpIHsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgICAgICBXaWRnZXRzLkZpbmRXaWRnZXQgPSBGaW5kV2lkZ2V0Ow0KICAgICAgICB9KShXaWRnZXRzID0gVGhpbmcuV2lkZ2V0cyB8fCAoVGhpbmcuV2lkZ2V0cyA9IHt9KSk7DQogICAgfSkoVGhpbmcgPSBTYW1wbGUuVGhpbmcgfHwgKFNhbXBsZS5UaGluZyA9IHt9KSk7DQp9KShTYW1wbGUgfHwgKFNhbXBsZSA9IHt9KSk7DQpjbGFzcyBBYnN0cmFjdE1vZGUgew0KICAgIGdldEluaXRpYWxTdGF0ZSgpIHsgcmV0dXJuIG51bGw7IH0NCn0NCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgdmFyIFRoaW5nOw0KICAgIChmdW5jdGlvbiAoVGhpbmcpIHsNCiAgICAgICAgdmFyIExhbmd1YWdlczsNCiAgICAgICAgKGZ1bmN0aW9uIChMYW5ndWFnZXMpIHsNCiAgICAgICAgICAgIHZhciBQbGFpblRleHQ7DQogICAgICAgICAgICAoZnVuY3Rpb24gKFBsYWluVGV4dCkgew0KICAgICAgICAgICAgICAgIGNsYXNzIFN0YXRlIHsNCiAgICAgICAgICAgICAgICAgICAgY29uc3RydWN0b3IobW9kZSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tb2RlID0gbW9kZTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBjbG9uZSgpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIGVxdWFscyhvdGhlcikgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMgPT09IG90aGVyOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIGdldE1vZGUoKSB7IHJldHVybiBtb2RlOyB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIFBsYWluVGV4dC5TdGF0ZSA9IFN0YXRlOw0KICAgICAgICAgICAgICAgIGNsYXNzIE1vZGUgZXh0ZW5kcyBBYnN0cmFjdE1vZGUgew0KICAgICAgICAgICAgICAgICAgICAvLyBzY2VuYXJpbyAyDQogICAgICAgICAgICAgICAgICAgIGdldEluaXRpYWxTdGF0ZSgpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgU3RhdGUoc2VsZik7DQogICAgICAgIC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K,QAWjB,CAAA;gBAED,MAAa,IAAK,SAAQ,YAAY;oBAErC,aAAa;oBACN,eAAe,GAAW;wBAChC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBAAA,CACvB;iBAGD;gBARY,UAAA,IAAI,OAQhB,CAAA;YAAA,CACD,EAxB6B,SAAS,GAAT,UAAA,SAAS,KAAT,UAAA,SAAS,QAwBtC;QADC,CACF,AAnGA,EA2EoB,SAAS,GAAT,MAAA,SAAS,KAAT,MAAA,SAAS,QAwB5B;IADC,CACF,AAnGA,EA2Ec,KAAK,GAAL,OAAA,KAAK,KAAL,OAAA,KAAK,QAwBlB;AADC,CACF,AAnGA,EA2EO,MAAM,KAAN,MAAM,QAwBZ"} -+//// https://sokra.github.io/source-map-visualization#base64,dmFyIFNhbXBsZTsNCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgbGV0IEFjdGlvbnM7DQogICAgKGZ1bmN0aW9uIChBY3Rpb25zKSB7DQogICAgICAgIGxldCBUaGluZzsNCiAgICAgICAgKGZ1bmN0aW9uIChUaGluZ18xKSB7DQogICAgICAgICAgICBsZXQgRmluZDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoRmluZCkgew0KICAgICAgICAgICAgICAgIGNsYXNzIFN0YXJ0RmluZEFjdGlvbiB7DQogICAgICAgICAgICAgICAgICAgIGdldElkKCkgeyByZXR1cm4gInlvIjsgfQ0KICAgICAgICAgICAgICAgICAgICBydW4oVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIEZpbmQuU3RhcnRGaW5kQWN0aW9uID0gU3RhcnRGaW5kQWN0aW9uOw0KICAgICAgICAgICAgfSkoRmluZCA9IFRoaW5nXzEuRmluZCB8fCAoVGhpbmdfMS5GaW5kID0ge30pKTsNCiAgICAgICAgfSkoVGhpbmcgPSBBY3Rpb25zLlRoaW5nIHx8IChBY3Rpb25zLlRoaW5nID0ge30pKTsNCiAgICB9KShBY3Rpb25zID0gU2FtcGxlLkFjdGlvbnMgfHwgKFNhbXBsZS5BY3Rpb25zID0ge30pKTsNCn0pKFNhbXBsZSB8fCAoU2FtcGxlID0ge30pKTsNCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgbGV0IFRoaW5nOw0KICAgIChmdW5jdGlvbiAoVGhpbmcpIHsNCiAgICAgICAgbGV0IFdpZGdldHM7DQogICAgICAgIChmdW5jdGlvbiAoV2lkZ2V0cykgew0KICAgICAgICAgICAgY2xhc3MgRmluZFdpZGdldCB7DQogICAgICAgICAgICAgICAgY29kZVRoaW5nOw0KICAgICAgICAgICAgICAgIGdhcihydW5uZXIpIHsgaWYgKHRydWUpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJ1bm5lcih0aGlzKTsNCiAgICAgICAgICAgICAgICB9IH0NCiAgICAgICAgICAgICAgICBkb21Ob2RlID0gbnVsbDsNCiAgICAgICAgICAgICAgICBjb25zdHJ1Y3Rvcihjb2RlVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb2RlVGhpbmcgPSBjb2RlVGhpbmc7DQogICAgICAgICAgICAgICAgICAgIC8vIHNjZW5hcmlvIDENCiAgICAgICAgICAgICAgICAgICAgY29kZVRoaW5nLmFkZFdpZGdldCgiYWRkV2lkZ2V0IiwgdGhpcyk7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGdldERvbU5vZGUoKSB7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBkb21Ob2RlOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBkZXN0cm95KCkgew0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIFdpZGdldHMuRmluZFdpZGdldCA9IEZpbmRXaWRnZXQ7DQogICAgICAgIH0pKFdpZGdldHMgPSBUaGluZy5XaWRnZXRzIHx8IChUaGluZy5XaWRnZXRzID0ge30pKTsNCiAgICB9KShUaGluZyA9IFNhbXBsZS5UaGluZyB8fCAoU2FtcGxlLlRoaW5nID0ge30pKTsNCn0pKFNhbXBsZSB8fCAoU2FtcGxlID0ge30pKTsNCmNsYXNzIEFic3RyYWN0TW9kZSB7DQogICAgZ2V0SW5pdGlhbFN0YXRlKCkgeyByZXR1cm4gbnVsbDsgfQ0KfQ0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICBsZXQgTGFuZ3VhZ2VzOw0KICAgICAgICAoZnVuY3Rpb24gKExhbmd1YWdlcykgew0KICAgICAgICAgICAgbGV0IFBsYWluVGV4dDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoUGxhaW5UZXh0KSB7DQogICAgICAgICAgICAgICAgY2xhc3MgU3RhdGUgew0KICAgICAgICAgICAgICAgICAgICBtb2RlOw0KICAgICAgICAgICAgICAgICAgICBjb25zdHJ1Y3Rvcihtb2RlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1vZGUgPSBtb2RlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIGNsb25lKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgZXF1YWxzKG90aGVyKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcyA9PT0gb3RoZXI7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgZ2V0TW9kZSgpIHsgcmV0dXJuIG1vZGU7IH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgUGxhaW5UZXh0LlN0YXRlID0gU3RhdGU7DQogICAgICAgICAgICAgICAgY2xhc3MgTW9kZSBleHRlbmRz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2xhc3MgQWJzdHJhY3RNb2RlIGltcGxlbWVudHMgSU1vZGUgeyBwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7IHJldHVybiBudWxsO30gfQoKaW50ZXJmYWNlIElTdGF0ZSB7fQoKaW50ZXJmYWNlIFdpbmRvdyB7CiAgICBvcGVuZXI6IFdpbmRvdzsKfQpkZWNsYXJlIHZhciBzZWxmOiBXaW5kb3c7Cgptb2R1bGUgU2FtcGxlLlRoaW5nLkxhbmd1YWdlcy5QbGFpblRleHQgewoJCglleHBvcnQgY2xhc3MgU3RhdGUgaW1wbGVtZW50cyBJU3RhdGUgewkJCiAgICAgICAgY29uc3RydWN0b3IocHJpdmF0ZSBtb2RlOiBJTW9kZSkgeyB9CgkJcHVibGljIGNsb25lKCk6SVN0YXRlIHsKCQkJcmV0dXJuIHRoaXM7CgkJfQoKCQlwdWJsaWMgZXF1YWxzKG90aGVyOklTdGF0ZSk6Ym9vbGVhbiB7CgkJCXJldHVybiB0aGlzID09PSBvdGhlcjsKCQl9CgkJCgkJcHVibGljIGdldE1vZGUoKTogSU1vZGUgeyByZXR1cm4gbW9kZTsgfQoJfQoJCglleHBvcnQgY2xhc3MgTW9kZSBleHRlbmRzIEFic3RyYWN0TW9kZSB7CgoJCS8vIHNjZW5hcmlvIDIKCQlwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7CgkJCXJldHVybiBuZXcgU3RhdGUoc2VsZik7CgkJfQoKCgl9Cn0KCg== \ No newline at end of file ++{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;AA8B1E,IAAO,MAUN;AAVD,WAAO,MAAM,EA1Bb;IA0Bc,IAAA,OAUb;IAVa,WAAA,OAAO,EA1BrB;QA0BsB,IAAA,KAUrB;QAVqB,WAAA,OAAK,EA1B3B;YA0B4B,IAAA,IAU3B;YAV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Gwgd2l0aCBjYXN0IGFuZCAidGhpcyIgcGFyYW1ldGVyDQp2YXIgU2FtcGxlOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgQWN0aW9uczsNCiAgICAoZnVuY3Rpb24gKEFjdGlvbnMpIHsNCiAgICAgICAgbGV0IFRoaW5nOw0KICAgICAgICAoZnVuY3Rpb24gKFRoaW5nXzEpIHsNCiAgICAgICAgICAgIGxldCBGaW5kOw0KICAgICAgICAgICAgKGZ1bmN0aW9uIChGaW5kKSB7DQogICAgICAgICAgICAgICAgY2xhc3MgU3RhcnRGaW5kQWN0aW9uIHsNCiAgICAgICAgICAgICAgICAgICAgZ2V0SWQoKSB7IHJldHVybiAieW8iOyB9DQogICAgICAgICAgICAgICAgICAgIHJ1bihUaGluZykgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgRmluZC5TdGFydEZpbmRBY3Rpb24gPSBTdGFydEZpbmRBY3Rpb247DQogICAgICAgICAgICB9KShGaW5kID0gVGhpbmdfMS5GaW5kIHx8IChUaGluZ18xLkZpbmQgPSB7fSkpOw0KICAgICAgICB9KShUaGluZyA9IEFjdGlvbnMuVGhpbmcgfHwgKEFjdGlvbnMuVGhpbmcgPSB7fSkpOw0KICAgIH0pKEFjdGlvbnMgPSBTYW1wbGUuQWN0aW9ucyB8fCAoU2FtcGxlLkFjdGlvbnMgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICBsZXQgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICBsZXQgV2lkZ2V0czsNCiAgICAgICAgKGZ1bmN0aW9uIChXaWRnZXRzKSB7DQogICAgICAgICAgICBjbGFzcyBGaW5kV2lkZ2V0IHsNCiAgICAgICAgICAgICAgICBjb2RlVGhpbmc7DQogICAgICAgICAgICAgICAgZ2FyKHJ1bm5lcikgeyBpZiAodHJ1ZSkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gcnVubmVyKHRoaXMpOw0KICAgICAgICAgICAgICAgIH0gfQ0KICAgICAgICAgICAgICAgIGRvbU5vZGUgPSBudWxsOw0KICAgICAgICAgICAgICAgIGNvbnN0cnVjdG9yKGNvZGVUaGluZykgew0KICAgICAgICAgICAgICAgICAgICB0aGlzLmNvZGVUaGluZyA9IGNvZGVUaGluZzsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMQ0KICAgICAgICAgICAgICAgICAgICBjb2RlVGhpbmcuYWRkV2lkZ2V0KCJhZGRXaWRnZXQiLCB0aGlzKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZ2V0RG9tTm9kZSgpIHsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRvbU5vZGU7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGRlc3Ryb3koKSB7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgV2lkZ2V0cy5GaW5kV2lkZ2V0ID0gRmluZFdpZGdldDsNCiAgICAgICAgfSkoV2lkZ2V0cyA9IFRoaW5nLldpZGdldHMgfHwgKFRoaW5nLldpZGdldHMgPSB7fSkpOw0KICAgIH0pKFRoaW5nID0gU2FtcGxlLlRoaW5nIHx8IChTYW1wbGUuVGhpbmcgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KY2xhc3MgQWJzdHJhY3RNb2RlIHsNCiAgICBnZXRJbml0aWFsU3RhdGUoKSB7IHJldHVybiBudWxsOyB9DQp9DQooZnVuY3Rpb24gKFNhbXBsZSkgew0KICAgIGxldCBUaGluZzsNCiAgICAoZnVuY3Rpb24gKFRoaW5nKSB7DQogICAgICAgIGxldCBMYW5ndWFnZXM7DQogICAgICAgIChmdW5jdGlvbiAoTGFuZ3VhZ2VzKSB7DQogICAgICAgICAgICBsZXQgUGxhaW5UZXh0Ow0KICAgICAgICAgICAgKGZ1bmN0aW9uIChQbGFpblRleHQpIHsNCiAgICAgICAgICAgICAgICBjbGFzcyBTdGF0ZSB7DQogICAgICAgICAgICAgICAgICAgIG1vZGU7DQogICAgICAgICAgICAgICAgICAgIGNvbnN0cnVjdG9yKG1vZGUpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubW9kZSA9IG1vZGU7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgY2xvbmUoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpczsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBlcXVhbHMob3RoZXIpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzID09PSBvdGhlcjsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBnZXRNb2RlKCkgeyByZXR1cm4gbW9kZTsgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBQbGFpblRleHQuU3RhdGUgPSBTdGF0ZTsNCiAgICAgICAgICAgICAgICBjbGFzcyBNb2RlIGV4dGVuZHMgQWJzdHJhY3RNb2RlIHsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMg0KICAgICAgICAgICAgICAgICAgICBnZXRJbml0aWFsU3RhdGUoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFN0YXRlKHNlbGYpOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIFBsYWluVGV4dC5Nb2RlID0gTW9kZTsNCiAgICAgICAgICAgIH0pKFBsYWluVGV4dCA9IExhbmd1YWdlcy5QbGFpblRleHQgfHwgKExhbmd1YWd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aW1wbGVtZW50cyBJU3RhdGUgewkJCiAgICAgICAgY29uc3RydWN0b3IocHJpdmF0ZSBtb2RlOiBJTW9kZSkgeyB9CgkJcHVibGljIGNsb25lKCk6SVN0YXRlIHsKCQkJcmV0dXJuIHRoaXM7CgkJfQoKCQlwdWJsaWMgZXF1YWxzKG90aGVyOklTdGF0ZSk6Ym9vbGVhbiB7CgkJCXJldHVybiB0aGlzID09PSBvdGhlcjsKCQl9CgkJCgkJcHVibGljIGdldE1vZGUoKTogSU1vZGUgeyByZXR1cm4gbW9kZTsgfQoJfQoJCglleHBvcnQgY2xhc3MgTW9kZSBleHRlbmRzIEFic3RyYWN0TW9kZSB7CgoJCS8vIHNjZW5hcmlvIDIKCQlwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7CgkJCXJldHVybiBuZXcgU3RhdGUoc2VsZik7CgkJfQoKCgl9Cn0KCg== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt index 6d5a6d1813..0410811032 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt @@ -8,13 +8,30 @@ sources: recursiveClassReferenceTest.ts emittedFile:recursiveClassReferenceTest.js sourceFile:recursiveClassReferenceTest.ts ------------------------------------------------------------------- +>>>// Scenario 1: Test reqursive function call with "this" parameter +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^-> +1 > +2 >// Scenario 1: Test reqursive function call with "this" parameter +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 66) Source(1, 66) + SourceIndex(0) +--- +>>>// Scenario 2: Test recursive function call with cast and "this" parameter +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >// Scenario 2: Test recursive function call with cast and "this" parameter +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 75) Source(2, 75) + SourceIndex(0) +--- >>>var Sample; 1 > 2 >^^^^ 3 > ^^^^^^ 4 > ^^^^^^^^^^^-> -1 >// Scenario 1: Test reqursive function call with "this" parameter - >// Scenario 2: Test recursive function call with cast and "this" parameter +1 > > > > @@ -57,9 +74,9 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(32, 8) + SourceIndex(0) -3 >Emitted(1, 11) Source(42, 2) + SourceIndex(0) +1 >Emitted(3, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(32, 8) + SourceIndex(0) +3 >Emitted(3, 11) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -70,10 +87,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 >module 3 > Sample 4 > -1->Emitted(2, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(32, 8) + SourceIndex(0) -3 >Emitted(2, 18) Source(32, 14) + SourceIndex(0) -4 >Emitted(2, 20) Source(6, 1) + SourceIndex(0) +1->Emitted(4, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(4, 12) Source(32, 8) + SourceIndex(0) +3 >Emitted(4, 18) Source(32, 14) + SourceIndex(0) +4 >Emitted(4, 20) Source(6, 1) + SourceIndex(0) --- >>> let Actions; 1 >^^^^ @@ -119,9 +136,9 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(3, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(3, 9) Source(32, 15) + SourceIndex(0) -3 >Emitted(3, 16) Source(42, 2) + SourceIndex(0) +1 >Emitted(5, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(5, 9) Source(32, 15) + SourceIndex(0) +3 >Emitted(5, 16) Source(42, 2) + SourceIndex(0) --- >>> (function (Actions) { 1->^^^^ @@ -132,10 +149,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Actions 4 > -1->Emitted(4, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(4, 16) Source(32, 15) + SourceIndex(0) -3 >Emitted(4, 23) Source(32, 22) + SourceIndex(0) -4 >Emitted(4, 25) Source(6, 1) + SourceIndex(0) +1->Emitted(6, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(6, 16) Source(32, 15) + SourceIndex(0) +3 >Emitted(6, 23) Source(32, 22) + SourceIndex(0) +4 >Emitted(6, 25) Source(6, 1) + SourceIndex(0) --- >>> let Thing; 1 >^^^^^^^^ @@ -181,9 +198,9 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(5, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(5, 13) Source(32, 23) + SourceIndex(0) -3 >Emitted(5, 18) Source(42, 2) + SourceIndex(0) +1 >Emitted(7, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(7, 13) Source(32, 23) + SourceIndex(0) +3 >Emitted(7, 18) Source(42, 2) + SourceIndex(0) --- >>> (function (Thing_1) { 1->^^^^^^^^ @@ -194,10 +211,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Thing 4 > -1->Emitted(6, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(6, 20) Source(32, 23) + SourceIndex(0) -3 >Emitted(6, 27) Source(32, 28) + SourceIndex(0) -4 >Emitted(6, 29) Source(6, 1) + SourceIndex(0) +1->Emitted(8, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(8, 20) Source(32, 23) + SourceIndex(0) +3 >Emitted(8, 27) Source(32, 28) + SourceIndex(0) +4 >Emitted(8, 29) Source(6, 1) + SourceIndex(0) --- >>> let Find; 1 >^^^^^^^^^^^^ @@ -243,9 +260,9 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(7, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(7, 17) Source(32, 29) + SourceIndex(0) -3 >Emitted(7, 21) Source(42, 2) + SourceIndex(0) +1 >Emitted(9, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(9, 17) Source(32, 29) + SourceIndex(0) +3 >Emitted(9, 21) Source(42, 2) + SourceIndex(0) --- >>> (function (Find) { 1->^^^^^^^^^^^^ @@ -257,10 +274,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Find 4 > -1->Emitted(8, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(8, 24) Source(32, 29) + SourceIndex(0) -3 >Emitted(8, 28) Source(32, 33) + SourceIndex(0) -4 >Emitted(8, 30) Source(32, 34) + SourceIndex(0) +1->Emitted(10, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(10, 24) Source(32, 29) + SourceIndex(0) +3 >Emitted(10, 28) Source(32, 33) + SourceIndex(0) +4 >Emitted(10, 30) Source(32, 34) + SourceIndex(0) --- >>> class StartFindAction { 1->^^^^^^^^^^^^^^^^ @@ -271,9 +288,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > export class 3 > StartFindAction -1->Emitted(9, 17) Source(33, 2) + SourceIndex(0) -2 >Emitted(9, 23) Source(33, 15) + SourceIndex(0) -3 >Emitted(9, 38) Source(33, 30) + SourceIndex(0) +1->Emitted(11, 17) Source(33, 2) + SourceIndex(0) +2 >Emitted(11, 23) Source(33, 15) + SourceIndex(0) +3 >Emitted(11, 38) Source(33, 30) + SourceIndex(0) --- >>> getId() { return "yo"; } 1->^^^^^^^^^^^^^^^^^^^^ @@ -296,15 +313,15 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(10, 21) Source(35, 10) + SourceIndex(0) -2 >Emitted(10, 26) Source(35, 15) + SourceIndex(0) -3 >Emitted(10, 29) Source(35, 18) + SourceIndex(0) -4 >Emitted(10, 31) Source(35, 20) + SourceIndex(0) -5 >Emitted(10, 38) Source(35, 27) + SourceIndex(0) -6 >Emitted(10, 42) Source(35, 31) + SourceIndex(0) -7 >Emitted(10, 43) Source(35, 32) + SourceIndex(0) -8 >Emitted(10, 44) Source(35, 32) + SourceIndex(0) -9 >Emitted(10, 45) Source(35, 34) + SourceIndex(0) +1->Emitted(12, 21) Source(35, 10) + SourceIndex(0) +2 >Emitted(12, 26) Source(35, 15) + SourceIndex(0) +3 >Emitted(12, 29) Source(35, 18) + SourceIndex(0) +4 >Emitted(12, 31) Source(35, 20) + SourceIndex(0) +5 >Emitted(12, 38) Source(35, 27) + SourceIndex(0) +6 >Emitted(12, 42) Source(35, 31) + SourceIndex(0) +7 >Emitted(12, 43) Source(35, 32) + SourceIndex(0) +8 >Emitted(12, 44) Source(35, 32) + SourceIndex(0) +9 >Emitted(12, 45) Source(35, 34) + SourceIndex(0) --- >>> run(Thing) { 1 >^^^^^^^^^^^^^^^^^^^^ @@ -320,11 +337,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ( 4 > Thing:Sample.Thing.ICodeThing 5 > ):boolean -1 >Emitted(11, 21) Source(37, 10) + SourceIndex(0) -2 >Emitted(11, 24) Source(37, 13) + SourceIndex(0) -3 >Emitted(11, 25) Source(37, 14) + SourceIndex(0) -4 >Emitted(11, 30) Source(37, 43) + SourceIndex(0) -5 >Emitted(11, 32) Source(37, 53) + SourceIndex(0) +1 >Emitted(13, 21) Source(37, 10) + SourceIndex(0) +2 >Emitted(13, 24) Source(37, 13) + SourceIndex(0) +3 >Emitted(13, 25) Source(37, 14) + SourceIndex(0) +4 >Emitted(13, 30) Source(37, 43) + SourceIndex(0) +5 >Emitted(13, 32) Source(37, 53) + SourceIndex(0) --- >>> return true; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -337,10 +354,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > true 4 > ; -1->Emitted(12, 25) Source(39, 4) + SourceIndex(0) -2 >Emitted(12, 32) Source(39, 11) + SourceIndex(0) -3 >Emitted(12, 36) Source(39, 15) + SourceIndex(0) -4 >Emitted(12, 37) Source(39, 16) + SourceIndex(0) +1->Emitted(14, 25) Source(39, 4) + SourceIndex(0) +2 >Emitted(14, 32) Source(39, 11) + SourceIndex(0) +3 >Emitted(14, 36) Source(39, 15) + SourceIndex(0) +4 >Emitted(14, 37) Source(39, 16) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -348,15 +365,15 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(13, 21) Source(39, 16) + SourceIndex(0) -2 >Emitted(13, 22) Source(40, 4) + SourceIndex(0) +1 >Emitted(15, 21) Source(39, 16) + SourceIndex(0) +2 >Emitted(15, 22) Source(40, 4) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > } -1 >Emitted(14, 18) Source(41, 3) + SourceIndex(0) +1 >Emitted(16, 18) Source(41, 3) + SourceIndex(0) --- >>> Find.StartFindAction = StartFindAction; 1->^^^^^^^^^^^^^^^^ @@ -378,11 +395,11 @@ sourceFile:recursiveClassReferenceTest.ts > } > } 5 > -1->Emitted(15, 17) Source(33, 15) + SourceIndex(0) -2 >Emitted(15, 22) Source(33, 15) + SourceIndex(0) -3 >Emitted(15, 37) Source(33, 30) + SourceIndex(0) -4 >Emitted(15, 55) Source(41, 3) + SourceIndex(0) -5 >Emitted(15, 56) Source(41, 3) + SourceIndex(0) +1->Emitted(17, 17) Source(33, 15) + SourceIndex(0) +2 >Emitted(17, 22) Source(33, 15) + SourceIndex(0) +3 >Emitted(17, 37) Source(33, 30) + SourceIndex(0) +4 >Emitted(17, 55) Source(41, 3) + SourceIndex(0) +5 >Emitted(17, 56) Source(41, 3) + SourceIndex(0) --- >>> })(Find = Thing_1.Find || (Thing_1.Find = {})); 1->^^^^^^^^^^^^ @@ -418,17 +435,17 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(16, 13) Source(41, 3) + SourceIndex(0) -2 >Emitted(16, 14) Source(42, 2) + SourceIndex(0) -3 >Emitted(16, 16) Source(32, 29) + SourceIndex(0) -4 >Emitted(16, 20) Source(32, 33) + SourceIndex(0) -5 >Emitted(16, 23) Source(32, 29) + SourceIndex(0) -6 >Emitted(16, 31) Source(32, 29) + SourceIndex(0) -7 >Emitted(16, 35) Source(32, 33) + SourceIndex(0) -8 >Emitted(16, 40) Source(32, 29) + SourceIndex(0) -9 >Emitted(16, 48) Source(32, 29) + SourceIndex(0) -10>Emitted(16, 52) Source(32, 33) + SourceIndex(0) -11>Emitted(16, 60) Source(42, 2) + SourceIndex(0) +1->Emitted(18, 13) Source(41, 3) + SourceIndex(0) +2 >Emitted(18, 14) Source(42, 2) + SourceIndex(0) +3 >Emitted(18, 16) Source(32, 29) + SourceIndex(0) +4 >Emitted(18, 20) Source(32, 33) + SourceIndex(0) +5 >Emitted(18, 23) Source(32, 29) + SourceIndex(0) +6 >Emitted(18, 31) Source(32, 29) + SourceIndex(0) +7 >Emitted(18, 35) Source(32, 33) + SourceIndex(0) +8 >Emitted(18, 40) Source(32, 29) + SourceIndex(0) +9 >Emitted(18, 48) Source(32, 29) + SourceIndex(0) +10>Emitted(18, 52) Source(32, 33) + SourceIndex(0) +11>Emitted(18, 60) Source(42, 2) + SourceIndex(0) --- >>> })(Thing = Actions.Thing || (Actions.Thing = {})); 1 >^^^^^^^^ @@ -498,18 +515,18 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(17, 9) Source(41, 3) + SourceIndex(0) -2 >Emitted(17, 10) Source(42, 1) + SourceIndex(0) -3 >Emitted(17, 10) Source(1, 1) + SourceIndex(0) -4 >Emitted(17, 12) Source(32, 23) + SourceIndex(0) -5 >Emitted(17, 17) Source(32, 28) + SourceIndex(0) -6 >Emitted(17, 20) Source(32, 23) + SourceIndex(0) -7 >Emitted(17, 28) Source(32, 23) + SourceIndex(0) -8 >Emitted(17, 33) Source(32, 28) + SourceIndex(0) -9 >Emitted(17, 38) Source(32, 23) + SourceIndex(0) -10>Emitted(17, 46) Source(32, 23) + SourceIndex(0) -11>Emitted(17, 51) Source(32, 28) + SourceIndex(0) -12>Emitted(17, 59) Source(42, 2) + SourceIndex(0) +1 >Emitted(19, 9) Source(41, 3) + SourceIndex(0) +2 >Emitted(19, 10) Source(42, 1) + SourceIndex(0) +3 >Emitted(19, 10) Source(1, 1) + SourceIndex(0) +4 >Emitted(19, 12) Source(32, 23) + SourceIndex(0) +5 >Emitted(19, 17) Source(32, 28) + SourceIndex(0) +6 >Emitted(19, 20) Source(32, 23) + SourceIndex(0) +7 >Emitted(19, 28) Source(32, 23) + SourceIndex(0) +8 >Emitted(19, 33) Source(32, 28) + SourceIndex(0) +9 >Emitted(19, 38) Source(32, 23) + SourceIndex(0) +10>Emitted(19, 46) Source(32, 23) + SourceIndex(0) +11>Emitted(19, 51) Source(32, 28) + SourceIndex(0) +12>Emitted(19, 59) Source(42, 2) + SourceIndex(0) --- >>> })(Actions = Sample.Actions || (Sample.Actions = {})); 1->^^^^ @@ -578,18 +595,18 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(18, 5) Source(41, 3) + SourceIndex(0) -2 >Emitted(18, 6) Source(42, 1) + SourceIndex(0) -3 >Emitted(18, 6) Source(1, 1) + SourceIndex(0) -4 >Emitted(18, 8) Source(32, 15) + SourceIndex(0) -5 >Emitted(18, 15) Source(32, 22) + SourceIndex(0) -6 >Emitted(18, 18) Source(32, 15) + SourceIndex(0) -7 >Emitted(18, 25) Source(32, 15) + SourceIndex(0) -8 >Emitted(18, 32) Source(32, 22) + SourceIndex(0) -9 >Emitted(18, 37) Source(32, 15) + SourceIndex(0) -10>Emitted(18, 44) Source(32, 15) + SourceIndex(0) -11>Emitted(18, 51) Source(32, 22) + SourceIndex(0) -12>Emitted(18, 59) Source(42, 2) + SourceIndex(0) +1->Emitted(20, 5) Source(41, 3) + SourceIndex(0) +2 >Emitted(20, 6) Source(42, 1) + SourceIndex(0) +3 >Emitted(20, 6) Source(1, 1) + SourceIndex(0) +4 >Emitted(20, 8) Source(32, 15) + SourceIndex(0) +5 >Emitted(20, 15) Source(32, 22) + SourceIndex(0) +6 >Emitted(20, 18) Source(32, 15) + SourceIndex(0) +7 >Emitted(20, 25) Source(32, 15) + SourceIndex(0) +8 >Emitted(20, 32) Source(32, 22) + SourceIndex(0) +9 >Emitted(20, 37) Source(32, 15) + SourceIndex(0) +10>Emitted(20, 44) Source(32, 15) + SourceIndex(0) +11>Emitted(20, 51) Source(32, 22) + SourceIndex(0) +12>Emitted(20, 59) Source(42, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -650,14 +667,14 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(19, 1) Source(41, 3) + SourceIndex(0) -2 >Emitted(19, 2) Source(42, 1) + SourceIndex(0) -3 >Emitted(19, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(19, 4) Source(32, 8) + SourceIndex(0) -5 >Emitted(19, 10) Source(32, 14) + SourceIndex(0) -6 >Emitted(19, 15) Source(32, 8) + SourceIndex(0) -7 >Emitted(19, 21) Source(32, 14) + SourceIndex(0) -8 >Emitted(19, 29) Source(42, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(41, 3) + SourceIndex(0) +2 >Emitted(21, 2) Source(42, 1) + SourceIndex(0) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(21, 4) Source(32, 8) + SourceIndex(0) +5 >Emitted(21, 10) Source(32, 14) + SourceIndex(0) +6 >Emitted(21, 15) Source(32, 8) + SourceIndex(0) +7 >Emitted(21, 21) Source(32, 14) + SourceIndex(0) +8 >Emitted(21, 29) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1 > @@ -670,10 +687,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 >module 3 > Sample 4 > -1 >Emitted(20, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(20, 12) Source(44, 8) + SourceIndex(0) -3 >Emitted(20, 18) Source(44, 14) + SourceIndex(0) -4 >Emitted(20, 20) Source(6, 1) + SourceIndex(0) +1 >Emitted(22, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(22, 12) Source(44, 8) + SourceIndex(0) +3 >Emitted(22, 18) Source(44, 14) + SourceIndex(0) +4 >Emitted(22, 20) Source(6, 1) + SourceIndex(0) --- >>> let Thing; 1 >^^^^ @@ -741,9 +758,9 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(21, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(21, 9) Source(44, 15) + SourceIndex(0) -3 >Emitted(21, 14) Source(64, 2) + SourceIndex(0) +1 >Emitted(23, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(23, 9) Source(44, 15) + SourceIndex(0) +3 >Emitted(23, 14) Source(64, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -754,10 +771,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Thing 4 > -1->Emitted(22, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(22, 16) Source(44, 15) + SourceIndex(0) -3 >Emitted(22, 21) Source(44, 20) + SourceIndex(0) -4 >Emitted(22, 23) Source(6, 1) + SourceIndex(0) +1->Emitted(24, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(24, 16) Source(44, 15) + SourceIndex(0) +3 >Emitted(24, 21) Source(44, 20) + SourceIndex(0) +4 >Emitted(24, 23) Source(6, 1) + SourceIndex(0) --- >>> let Widgets; 1 >^^^^^^^^ @@ -825,9 +842,9 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(23, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(23, 13) Source(44, 21) + SourceIndex(0) -3 >Emitted(23, 20) Source(64, 2) + SourceIndex(0) +1 >Emitted(25, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(25, 13) Source(44, 21) + SourceIndex(0) +3 >Emitted(25, 20) Source(64, 2) + SourceIndex(0) --- >>> (function (Widgets) { 1->^^^^^^^^ @@ -839,10 +856,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Widgets 4 > -1->Emitted(24, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(24, 20) Source(44, 21) + SourceIndex(0) -3 >Emitted(24, 27) Source(44, 28) + SourceIndex(0) -4 >Emitted(24, 29) Source(44, 29) + SourceIndex(0) +1->Emitted(26, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(26, 20) Source(44, 21) + SourceIndex(0) +3 >Emitted(26, 27) Source(44, 28) + SourceIndex(0) +4 >Emitted(26, 29) Source(44, 29) + SourceIndex(0) --- >>> class FindWidget { 1->^^^^^^^^^^^^ @@ -852,9 +869,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > export class 3 > FindWidget -1->Emitted(25, 13) Source(45, 2) + SourceIndex(0) -2 >Emitted(25, 19) Source(45, 15) + SourceIndex(0) -3 >Emitted(25, 29) Source(45, 25) + SourceIndex(0) +1->Emitted(27, 13) Source(45, 2) + SourceIndex(0) +2 >Emitted(27, 19) Source(45, 15) + SourceIndex(0) +3 >Emitted(27, 29) Source(45, 25) + SourceIndex(0) --- >>> codeThing; 1 >^^^^^^^^^^^^^^^^ @@ -867,8 +884,8 @@ sourceFile:recursiveClassReferenceTest.ts > private domNode:any = null; > constructor(private 2 > codeThing -1 >Emitted(26, 17) Source(50, 23) + SourceIndex(0) -2 >Emitted(26, 26) Source(50, 32) + SourceIndex(0) +1 >Emitted(28, 17) Source(50, 23) + SourceIndex(0) +2 >Emitted(28, 26) Source(50, 32) + SourceIndex(0) --- >>> gar(runner) { if (true) { 1->^^^^^^^^^^^^^^^^ @@ -891,16 +908,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > true 9 > ) 10> { -1->Emitted(27, 17) Source(47, 10) + SourceIndex(0) -2 >Emitted(27, 20) Source(47, 13) + SourceIndex(0) -3 >Emitted(27, 21) Source(47, 14) + SourceIndex(0) -4 >Emitted(27, 27) Source(47, 55) + SourceIndex(0) -5 >Emitted(27, 29) Source(47, 57) + SourceIndex(0) -6 >Emitted(27, 31) Source(47, 59) + SourceIndex(0) -7 >Emitted(27, 35) Source(47, 63) + SourceIndex(0) -8 >Emitted(27, 39) Source(47, 67) + SourceIndex(0) -9 >Emitted(27, 41) Source(47, 69) + SourceIndex(0) -10>Emitted(27, 42) Source(47, 70) + SourceIndex(0) +1->Emitted(29, 17) Source(47, 10) + SourceIndex(0) +2 >Emitted(29, 20) Source(47, 13) + SourceIndex(0) +3 >Emitted(29, 21) Source(47, 14) + SourceIndex(0) +4 >Emitted(29, 27) Source(47, 55) + SourceIndex(0) +5 >Emitted(29, 29) Source(47, 57) + SourceIndex(0) +6 >Emitted(29, 31) Source(47, 59) + SourceIndex(0) +7 >Emitted(29, 35) Source(47, 63) + SourceIndex(0) +8 >Emitted(29, 39) Source(47, 67) + SourceIndex(0) +9 >Emitted(29, 41) Source(47, 69) + SourceIndex(0) +10>Emitted(29, 42) Source(47, 70) + SourceIndex(0) --- >>> return runner(this); 1 >^^^^^^^^^^^^^^^^^^^^ @@ -917,13 +934,13 @@ sourceFile:recursiveClassReferenceTest.ts 5 > this 6 > ) 7 > ; -1 >Emitted(28, 21) Source(47, 70) + SourceIndex(0) -2 >Emitted(28, 28) Source(47, 77) + SourceIndex(0) -3 >Emitted(28, 34) Source(47, 83) + SourceIndex(0) -4 >Emitted(28, 35) Source(47, 84) + SourceIndex(0) -5 >Emitted(28, 39) Source(47, 88) + SourceIndex(0) -6 >Emitted(28, 40) Source(47, 89) + SourceIndex(0) -7 >Emitted(28, 41) Source(47, 90) + SourceIndex(0) +1 >Emitted(30, 21) Source(47, 70) + SourceIndex(0) +2 >Emitted(30, 28) Source(47, 77) + SourceIndex(0) +3 >Emitted(30, 34) Source(47, 83) + SourceIndex(0) +4 >Emitted(30, 35) Source(47, 84) + SourceIndex(0) +5 >Emitted(30, 39) Source(47, 88) + SourceIndex(0) +6 >Emitted(30, 40) Source(47, 89) + SourceIndex(0) +7 >Emitted(30, 41) Source(47, 90) + SourceIndex(0) --- >>> } } 1 >^^^^^^^^^^^^^^^^ @@ -935,10 +952,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > } 3 > 4 > } -1 >Emitted(29, 17) Source(47, 90) + SourceIndex(0) -2 >Emitted(29, 18) Source(47, 91) + SourceIndex(0) -3 >Emitted(29, 19) Source(47, 91) + SourceIndex(0) -4 >Emitted(29, 20) Source(47, 92) + SourceIndex(0) +1 >Emitted(31, 17) Source(47, 90) + SourceIndex(0) +2 >Emitted(31, 18) Source(47, 91) + SourceIndex(0) +3 >Emitted(31, 19) Source(47, 91) + SourceIndex(0) +4 >Emitted(31, 20) Source(47, 92) + SourceIndex(0) --- >>> domNode = null; 1->^^^^^^^^^^^^^^^^ @@ -954,11 +971,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > :any = 4 > null 5 > ; -1->Emitted(30, 17) Source(49, 11) + SourceIndex(0) -2 >Emitted(30, 24) Source(49, 18) + SourceIndex(0) -3 >Emitted(30, 27) Source(49, 25) + SourceIndex(0) -4 >Emitted(30, 31) Source(49, 29) + SourceIndex(0) -5 >Emitted(30, 32) Source(49, 30) + SourceIndex(0) +1->Emitted(32, 17) Source(49, 11) + SourceIndex(0) +2 >Emitted(32, 24) Source(49, 18) + SourceIndex(0) +3 >Emitted(32, 27) Source(49, 25) + SourceIndex(0) +4 >Emitted(32, 31) Source(49, 29) + SourceIndex(0) +5 >Emitted(32, 32) Source(49, 30) + SourceIndex(0) --- >>> constructor(codeThing) { 1->^^^^^^^^^^^^^^^^ @@ -971,18 +988,18 @@ sourceFile:recursiveClassReferenceTest.ts 2 > constructor(private 3 > codeThing: Sample.Thing.ICodeThing 4 > ) -1->Emitted(31, 17) Source(50, 3) + SourceIndex(0) -2 >Emitted(31, 29) Source(50, 23) + SourceIndex(0) -3 >Emitted(31, 38) Source(50, 57) + SourceIndex(0) -4 >Emitted(31, 40) Source(50, 59) + SourceIndex(0) +1->Emitted(33, 17) Source(50, 3) + SourceIndex(0) +2 >Emitted(33, 29) Source(50, 23) + SourceIndex(0) +3 >Emitted(33, 38) Source(50, 57) + SourceIndex(0) +4 >Emitted(33, 40) Source(50, 59) + SourceIndex(0) --- >>> this.codeThing = codeThing; 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > codeThing -1->Emitted(32, 38) Source(50, 23) + SourceIndex(0) -2 >Emitted(32, 47) Source(50, 32) + SourceIndex(0) +1->Emitted(34, 38) Source(50, 23) + SourceIndex(0) +2 >Emitted(34, 47) Source(50, 32) + SourceIndex(0) --- >>> // scenario 1 1 >^^^^^^^^^^^^^^^^^^^^ @@ -991,8 +1008,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 >: Sample.Thing.ICodeThing) { > 2 > // scenario 1 -1 >Emitted(33, 21) Source(51, 7) + SourceIndex(0) -2 >Emitted(33, 34) Source(51, 20) + SourceIndex(0) +1 >Emitted(35, 21) Source(51, 7) + SourceIndex(0) +2 >Emitted(35, 34) Source(51, 20) + SourceIndex(0) --- >>> codeThing.addWidget("addWidget", this); 1->^^^^^^^^^^^^^^^^^^^^ @@ -1016,16 +1033,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > this 9 > ) 10> ; -1->Emitted(34, 21) Source(52, 7) + SourceIndex(0) -2 >Emitted(34, 30) Source(52, 16) + SourceIndex(0) -3 >Emitted(34, 31) Source(52, 17) + SourceIndex(0) -4 >Emitted(34, 40) Source(52, 26) + SourceIndex(0) -5 >Emitted(34, 41) Source(52, 27) + SourceIndex(0) -6 >Emitted(34, 52) Source(52, 38) + SourceIndex(0) -7 >Emitted(34, 54) Source(52, 40) + SourceIndex(0) -8 >Emitted(34, 58) Source(52, 44) + SourceIndex(0) -9 >Emitted(34, 59) Source(52, 45) + SourceIndex(0) -10>Emitted(34, 60) Source(52, 46) + SourceIndex(0) +1->Emitted(36, 21) Source(52, 7) + SourceIndex(0) +2 >Emitted(36, 30) Source(52, 16) + SourceIndex(0) +3 >Emitted(36, 31) Source(52, 17) + SourceIndex(0) +4 >Emitted(36, 40) Source(52, 26) + SourceIndex(0) +5 >Emitted(36, 41) Source(52, 27) + SourceIndex(0) +6 >Emitted(36, 52) Source(52, 38) + SourceIndex(0) +7 >Emitted(36, 54) Source(52, 40) + SourceIndex(0) +8 >Emitted(36, 58) Source(52, 44) + SourceIndex(0) +9 >Emitted(36, 59) Source(52, 45) + SourceIndex(0) +10>Emitted(36, 60) Source(52, 46) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1034,8 +1051,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(35, 17) Source(52, 46) + SourceIndex(0) -2 >Emitted(35, 18) Source(53, 4) + SourceIndex(0) +1 >Emitted(37, 17) Source(52, 46) + SourceIndex(0) +2 >Emitted(37, 18) Source(53, 4) + SourceIndex(0) --- >>> getDomNode() { 1->^^^^^^^^^^^^^^^^ @@ -1047,9 +1064,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getDomNode 3 > () -1->Emitted(36, 17) Source(55, 10) + SourceIndex(0) -2 >Emitted(36, 27) Source(55, 20) + SourceIndex(0) -3 >Emitted(36, 30) Source(55, 23) + SourceIndex(0) +1->Emitted(38, 17) Source(55, 10) + SourceIndex(0) +2 >Emitted(38, 27) Source(55, 20) + SourceIndex(0) +3 >Emitted(38, 30) Source(55, 23) + SourceIndex(0) --- >>> return domNode; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1061,10 +1078,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > domNode 4 > ; -1->Emitted(37, 21) Source(56, 4) + SourceIndex(0) -2 >Emitted(37, 28) Source(56, 11) + SourceIndex(0) -3 >Emitted(37, 35) Source(56, 18) + SourceIndex(0) -4 >Emitted(37, 36) Source(56, 19) + SourceIndex(0) +1->Emitted(39, 21) Source(56, 4) + SourceIndex(0) +2 >Emitted(39, 28) Source(56, 11) + SourceIndex(0) +3 >Emitted(39, 35) Source(56, 18) + SourceIndex(0) +4 >Emitted(39, 36) Source(56, 19) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1073,8 +1090,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(38, 17) Source(56, 19) + SourceIndex(0) -2 >Emitted(38, 18) Source(57, 4) + SourceIndex(0) +1 >Emitted(40, 17) Source(56, 19) + SourceIndex(0) +2 >Emitted(40, 18) Source(57, 4) + SourceIndex(0) --- >>> destroy() { 1->^^^^^^^^^^^^^^^^ @@ -1085,9 +1102,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > destroy 3 > () -1->Emitted(39, 17) Source(59, 10) + SourceIndex(0) -2 >Emitted(39, 24) Source(59, 17) + SourceIndex(0) -3 >Emitted(39, 27) Source(59, 20) + SourceIndex(0) +1->Emitted(41, 17) Source(59, 10) + SourceIndex(0) +2 >Emitted(41, 24) Source(59, 17) + SourceIndex(0) +3 >Emitted(41, 27) Source(59, 20) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1096,8 +1113,8 @@ sourceFile:recursiveClassReferenceTest.ts 2 > > > } -1 >Emitted(40, 17) Source(59, 21) + SourceIndex(0) -2 >Emitted(40, 18) Source(61, 4) + SourceIndex(0) +1 >Emitted(42, 17) Source(59, 21) + SourceIndex(0) +2 >Emitted(42, 18) Source(61, 4) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^ @@ -1105,7 +1122,7 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > > } -1 >Emitted(41, 14) Source(63, 3) + SourceIndex(0) +1 >Emitted(43, 14) Source(63, 3) + SourceIndex(0) --- >>> Widgets.FindWidget = FindWidget; 1->^^^^^^^^^^^^ @@ -1137,11 +1154,11 @@ sourceFile:recursiveClassReferenceTest.ts > > } 5 > -1->Emitted(42, 13) Source(45, 15) + SourceIndex(0) -2 >Emitted(42, 21) Source(45, 15) + SourceIndex(0) -3 >Emitted(42, 31) Source(45, 25) + SourceIndex(0) -4 >Emitted(42, 44) Source(63, 3) + SourceIndex(0) -5 >Emitted(42, 45) Source(63, 3) + SourceIndex(0) +1->Emitted(44, 13) Source(45, 15) + SourceIndex(0) +2 >Emitted(44, 21) Source(45, 15) + SourceIndex(0) +3 >Emitted(44, 31) Source(45, 25) + SourceIndex(0) +4 >Emitted(44, 44) Source(63, 3) + SourceIndex(0) +5 >Emitted(44, 45) Source(63, 3) + SourceIndex(0) --- >>> })(Widgets = Thing.Widgets || (Thing.Widgets = {})); 1->^^^^^^^^ @@ -1187,17 +1204,17 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(43, 9) Source(63, 3) + SourceIndex(0) -2 >Emitted(43, 10) Source(64, 2) + SourceIndex(0) -3 >Emitted(43, 12) Source(44, 21) + SourceIndex(0) -4 >Emitted(43, 19) Source(44, 28) + SourceIndex(0) -5 >Emitted(43, 22) Source(44, 21) + SourceIndex(0) -6 >Emitted(43, 28) Source(44, 21) + SourceIndex(0) -7 >Emitted(43, 35) Source(44, 28) + SourceIndex(0) -8 >Emitted(43, 40) Source(44, 21) + SourceIndex(0) -9 >Emitted(43, 46) Source(44, 21) + SourceIndex(0) -10>Emitted(43, 53) Source(44, 28) + SourceIndex(0) -11>Emitted(43, 61) Source(64, 2) + SourceIndex(0) +1->Emitted(45, 9) Source(63, 3) + SourceIndex(0) +2 >Emitted(45, 10) Source(64, 2) + SourceIndex(0) +3 >Emitted(45, 12) Source(44, 21) + SourceIndex(0) +4 >Emitted(45, 19) Source(44, 28) + SourceIndex(0) +5 >Emitted(45, 22) Source(44, 21) + SourceIndex(0) +6 >Emitted(45, 28) Source(44, 21) + SourceIndex(0) +7 >Emitted(45, 35) Source(44, 28) + SourceIndex(0) +8 >Emitted(45, 40) Source(44, 21) + SourceIndex(0) +9 >Emitted(45, 46) Source(44, 21) + SourceIndex(0) +10>Emitted(45, 53) Source(44, 28) + SourceIndex(0) +11>Emitted(45, 61) Source(64, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1288,18 +1305,18 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(44, 5) Source(63, 3) + SourceIndex(0) -2 >Emitted(44, 6) Source(64, 1) + SourceIndex(0) -3 >Emitted(44, 6) Source(1, 1) + SourceIndex(0) -4 >Emitted(44, 8) Source(44, 15) + SourceIndex(0) -5 >Emitted(44, 13) Source(44, 20) + SourceIndex(0) -6 >Emitted(44, 16) Source(44, 15) + SourceIndex(0) -7 >Emitted(44, 23) Source(44, 15) + SourceIndex(0) -8 >Emitted(44, 28) Source(44, 20) + SourceIndex(0) -9 >Emitted(44, 33) Source(44, 15) + SourceIndex(0) -10>Emitted(44, 40) Source(44, 15) + SourceIndex(0) -11>Emitted(44, 45) Source(44, 20) + SourceIndex(0) -12>Emitted(44, 53) Source(64, 2) + SourceIndex(0) +1 >Emitted(46, 5) Source(63, 3) + SourceIndex(0) +2 >Emitted(46, 6) Source(64, 1) + SourceIndex(0) +3 >Emitted(46, 6) Source(1, 1) + SourceIndex(0) +4 >Emitted(46, 8) Source(44, 15) + SourceIndex(0) +5 >Emitted(46, 13) Source(44, 20) + SourceIndex(0) +6 >Emitted(46, 16) Source(44, 15) + SourceIndex(0) +7 >Emitted(46, 23) Source(44, 15) + SourceIndex(0) +8 >Emitted(46, 28) Source(44, 20) + SourceIndex(0) +9 >Emitted(46, 33) Source(44, 15) + SourceIndex(0) +10>Emitted(46, 40) Source(44, 15) + SourceIndex(0) +11>Emitted(46, 45) Source(44, 20) + SourceIndex(0) +12>Emitted(46, 53) Source(64, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1382,14 +1399,14 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(45, 1) Source(63, 3) + SourceIndex(0) -2 >Emitted(45, 2) Source(64, 1) + SourceIndex(0) -3 >Emitted(45, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(45, 4) Source(44, 8) + SourceIndex(0) -5 >Emitted(45, 10) Source(44, 14) + SourceIndex(0) -6 >Emitted(45, 15) Source(44, 8) + SourceIndex(0) -7 >Emitted(45, 21) Source(44, 14) + SourceIndex(0) -8 >Emitted(45, 29) Source(64, 2) + SourceIndex(0) +1 >Emitted(47, 1) Source(63, 3) + SourceIndex(0) +2 >Emitted(47, 2) Source(64, 1) + SourceIndex(0) +3 >Emitted(47, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(47, 4) Source(44, 8) + SourceIndex(0) +5 >Emitted(47, 10) Source(44, 14) + SourceIndex(0) +6 >Emitted(47, 15) Source(44, 8) + SourceIndex(0) +7 >Emitted(47, 21) Source(44, 14) + SourceIndex(0) +8 >Emitted(47, 29) Source(64, 2) + SourceIndex(0) --- >>>class AbstractMode { 1 > @@ -1402,9 +1419,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 >class 3 > AbstractMode -1 >Emitted(46, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(46, 7) Source(67, 7) + SourceIndex(0) -3 >Emitted(46, 19) Source(67, 19) + SourceIndex(0) +1 >Emitted(48, 1) Source(67, 1) + SourceIndex(0) +2 >Emitted(48, 7) Source(67, 7) + SourceIndex(0) +3 >Emitted(48, 19) Source(67, 19) + SourceIndex(0) --- >>> getInitialState() { return null; } 1->^^^^ @@ -1425,21 +1442,21 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(47, 5) Source(67, 46) + SourceIndex(0) -2 >Emitted(47, 20) Source(67, 61) + SourceIndex(0) -3 >Emitted(47, 23) Source(67, 72) + SourceIndex(0) -4 >Emitted(47, 25) Source(67, 74) + SourceIndex(0) -5 >Emitted(47, 32) Source(67, 81) + SourceIndex(0) -6 >Emitted(47, 36) Source(67, 85) + SourceIndex(0) -7 >Emitted(47, 37) Source(67, 86) + SourceIndex(0) -8 >Emitted(47, 38) Source(67, 86) + SourceIndex(0) -9 >Emitted(47, 39) Source(67, 87) + SourceIndex(0) +1->Emitted(49, 5) Source(67, 46) + SourceIndex(0) +2 >Emitted(49, 20) Source(67, 61) + SourceIndex(0) +3 >Emitted(49, 23) Source(67, 72) + SourceIndex(0) +4 >Emitted(49, 25) Source(67, 74) + SourceIndex(0) +5 >Emitted(49, 32) Source(67, 81) + SourceIndex(0) +6 >Emitted(49, 36) Source(67, 85) + SourceIndex(0) +7 >Emitted(49, 37) Source(67, 86) + SourceIndex(0) +8 >Emitted(49, 38) Source(67, 86) + SourceIndex(0) +9 >Emitted(49, 39) Source(67, 87) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(48, 2) Source(67, 89) + SourceIndex(0) +1 >Emitted(50, 2) Source(67, 89) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -1459,10 +1476,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 >module 3 > Sample 4 > -1->Emitted(49, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(49, 12) Source(76, 8) + SourceIndex(0) -3 >Emitted(49, 18) Source(76, 14) + SourceIndex(0) -4 >Emitted(49, 20) Source(6, 1) + SourceIndex(0) +1->Emitted(51, 1) Source(76, 1) + SourceIndex(0) +2 >Emitted(51, 12) Source(76, 8) + SourceIndex(0) +3 >Emitted(51, 18) Source(76, 14) + SourceIndex(0) +4 >Emitted(51, 20) Source(6, 1) + SourceIndex(0) --- >>> let Thing; 1 >^^^^ @@ -1566,9 +1583,9 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(50, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(50, 9) Source(76, 15) + SourceIndex(0) -3 >Emitted(50, 14) Source(100, 2) + SourceIndex(0) +1 >Emitted(52, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(52, 9) Source(76, 15) + SourceIndex(0) +3 >Emitted(52, 14) Source(100, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -1580,10 +1597,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Thing 4 > -1->Emitted(51, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(51, 16) Source(76, 15) + SourceIndex(0) -3 >Emitted(51, 21) Source(76, 20) + SourceIndex(0) -4 >Emitted(51, 23) Source(6, 1) + SourceIndex(0) +1->Emitted(53, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(53, 16) Source(76, 15) + SourceIndex(0) +3 >Emitted(53, 21) Source(76, 20) + SourceIndex(0) +4 >Emitted(53, 23) Source(6, 1) + SourceIndex(0) --- >>> let Languages; 1->^^^^^^^^ @@ -1687,9 +1704,9 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(52, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(52, 13) Source(76, 21) + SourceIndex(0) -3 >Emitted(52, 22) Source(100, 2) + SourceIndex(0) +1->Emitted(54, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(54, 13) Source(76, 21) + SourceIndex(0) +3 >Emitted(54, 22) Source(100, 2) + SourceIndex(0) --- >>> (function (Languages) { 1->^^^^^^^^ @@ -1700,10 +1717,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > Languages 4 > -1->Emitted(53, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(53, 20) Source(76, 21) + SourceIndex(0) -3 >Emitted(53, 29) Source(76, 30) + SourceIndex(0) -4 >Emitted(53, 31) Source(6, 1) + SourceIndex(0) +1->Emitted(55, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(55, 20) Source(76, 21) + SourceIndex(0) +3 >Emitted(55, 29) Source(76, 30) + SourceIndex(0) +4 >Emitted(55, 31) Source(6, 1) + SourceIndex(0) --- >>> let PlainText; 1 >^^^^^^^^^^^^ @@ -1807,9 +1824,9 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(54, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(54, 17) Source(76, 31) + SourceIndex(0) -3 >Emitted(54, 26) Source(100, 2) + SourceIndex(0) +1 >Emitted(56, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(56, 17) Source(76, 31) + SourceIndex(0) +3 >Emitted(56, 26) Source(100, 2) + SourceIndex(0) --- >>> (function (PlainText) { 1->^^^^^^^^^^^^ @@ -1820,10 +1837,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > 3 > PlainText 4 > -1->Emitted(55, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(55, 24) Source(76, 31) + SourceIndex(0) -3 >Emitted(55, 33) Source(76, 40) + SourceIndex(0) -4 >Emitted(55, 35) Source(76, 41) + SourceIndex(0) +1->Emitted(57, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(57, 24) Source(76, 31) + SourceIndex(0) +3 >Emitted(57, 33) Source(76, 40) + SourceIndex(0) +4 >Emitted(57, 35) Source(76, 41) + SourceIndex(0) --- >>> class State { 1 >^^^^^^^^^^^^^^^^ @@ -1834,9 +1851,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > export class 3 > State -1 >Emitted(56, 17) Source(78, 2) + SourceIndex(0) -2 >Emitted(56, 23) Source(78, 15) + SourceIndex(0) -3 >Emitted(56, 28) Source(78, 20) + SourceIndex(0) +1 >Emitted(58, 17) Source(78, 2) + SourceIndex(0) +2 >Emitted(58, 23) Source(78, 15) + SourceIndex(0) +3 >Emitted(58, 28) Source(78, 20) + SourceIndex(0) --- >>> mode; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1845,8 +1862,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > implements IState { > constructor(private 2 > mode -1 >Emitted(57, 21) Source(79, 29) + SourceIndex(0) -2 >Emitted(57, 25) Source(79, 33) + SourceIndex(0) +1 >Emitted(59, 21) Source(79, 29) + SourceIndex(0) +2 >Emitted(59, 25) Source(79, 33) + SourceIndex(0) --- >>> constructor(mode) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1858,18 +1875,18 @@ sourceFile:recursiveClassReferenceTest.ts 2 > constructor(private 3 > mode: IMode 4 > ) -1->Emitted(58, 21) Source(79, 9) + SourceIndex(0) -2 >Emitted(58, 33) Source(79, 29) + SourceIndex(0) -3 >Emitted(58, 37) Source(79, 40) + SourceIndex(0) -4 >Emitted(58, 39) Source(79, 42) + SourceIndex(0) +1->Emitted(60, 21) Source(79, 9) + SourceIndex(0) +2 >Emitted(60, 33) Source(79, 29) + SourceIndex(0) +3 >Emitted(60, 37) Source(79, 40) + SourceIndex(0) +4 >Emitted(60, 39) Source(79, 42) + SourceIndex(0) --- >>> this.mode = mode; 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^ 1-> 2 > mode -1->Emitted(59, 37) Source(79, 29) + SourceIndex(0) -2 >Emitted(59, 41) Source(79, 33) + SourceIndex(0) +1->Emitted(61, 37) Source(79, 29) + SourceIndex(0) +2 >Emitted(61, 41) Source(79, 33) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1877,8 +1894,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^-> 1 >: IMode) { 2 > } -1 >Emitted(60, 21) Source(79, 43) + SourceIndex(0) -2 >Emitted(60, 22) Source(79, 45) + SourceIndex(0) +1 >Emitted(62, 21) Source(79, 43) + SourceIndex(0) +2 >Emitted(62, 22) Source(79, 45) + SourceIndex(0) --- >>> clone() { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1889,9 +1906,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > clone 3 > ():IState -1->Emitted(61, 21) Source(80, 10) + SourceIndex(0) -2 >Emitted(61, 26) Source(80, 15) + SourceIndex(0) -3 >Emitted(61, 29) Source(80, 25) + SourceIndex(0) +1->Emitted(63, 21) Source(80, 10) + SourceIndex(0) +2 >Emitted(63, 26) Source(80, 15) + SourceIndex(0) +3 >Emitted(63, 29) Source(80, 25) + SourceIndex(0) --- >>> return this; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1903,10 +1920,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > this 4 > ; -1->Emitted(62, 25) Source(81, 4) + SourceIndex(0) -2 >Emitted(62, 32) Source(81, 11) + SourceIndex(0) -3 >Emitted(62, 36) Source(81, 15) + SourceIndex(0) -4 >Emitted(62, 37) Source(81, 16) + SourceIndex(0) +1->Emitted(64, 25) Source(81, 4) + SourceIndex(0) +2 >Emitted(64, 32) Source(81, 11) + SourceIndex(0) +3 >Emitted(64, 36) Source(81, 15) + SourceIndex(0) +4 >Emitted(64, 37) Source(81, 16) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1915,8 +1932,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(63, 21) Source(81, 16) + SourceIndex(0) -2 >Emitted(63, 22) Source(82, 4) + SourceIndex(0) +1 >Emitted(65, 21) Source(81, 16) + SourceIndex(0) +2 >Emitted(65, 22) Source(82, 4) + SourceIndex(0) --- >>> equals(other) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1932,11 +1949,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ( 4 > other:IState 5 > ):boolean -1->Emitted(64, 21) Source(84, 10) + SourceIndex(0) -2 >Emitted(64, 27) Source(84, 16) + SourceIndex(0) -3 >Emitted(64, 28) Source(84, 17) + SourceIndex(0) -4 >Emitted(64, 33) Source(84, 29) + SourceIndex(0) -5 >Emitted(64, 35) Source(84, 39) + SourceIndex(0) +1->Emitted(66, 21) Source(84, 10) + SourceIndex(0) +2 >Emitted(66, 27) Source(84, 16) + SourceIndex(0) +3 >Emitted(66, 28) Source(84, 17) + SourceIndex(0) +4 >Emitted(66, 33) Source(84, 29) + SourceIndex(0) +5 >Emitted(66, 35) Source(84, 39) + SourceIndex(0) --- >>> return this === other; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1952,12 +1969,12 @@ sourceFile:recursiveClassReferenceTest.ts 4 > === 5 > other 6 > ; -1->Emitted(65, 25) Source(85, 4) + SourceIndex(0) -2 >Emitted(65, 32) Source(85, 11) + SourceIndex(0) -3 >Emitted(65, 36) Source(85, 15) + SourceIndex(0) -4 >Emitted(65, 41) Source(85, 20) + SourceIndex(0) -5 >Emitted(65, 46) Source(85, 25) + SourceIndex(0) -6 >Emitted(65, 47) Source(85, 26) + SourceIndex(0) +1->Emitted(67, 25) Source(85, 4) + SourceIndex(0) +2 >Emitted(67, 32) Source(85, 11) + SourceIndex(0) +3 >Emitted(67, 36) Source(85, 15) + SourceIndex(0) +4 >Emitted(67, 41) Source(85, 20) + SourceIndex(0) +5 >Emitted(67, 46) Source(85, 25) + SourceIndex(0) +6 >Emitted(67, 47) Source(85, 26) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1966,8 +1983,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(66, 21) Source(85, 26) + SourceIndex(0) -2 >Emitted(66, 22) Source(86, 4) + SourceIndex(0) +1 >Emitted(68, 21) Source(85, 26) + SourceIndex(0) +2 >Emitted(68, 22) Source(86, 4) + SourceIndex(0) --- >>> getMode() { return mode; } 1->^^^^^^^^^^^^^^^^^^^^ @@ -1990,22 +2007,22 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(67, 21) Source(88, 10) + SourceIndex(0) -2 >Emitted(67, 28) Source(88, 17) + SourceIndex(0) -3 >Emitted(67, 31) Source(88, 27) + SourceIndex(0) -4 >Emitted(67, 33) Source(88, 29) + SourceIndex(0) -5 >Emitted(67, 40) Source(88, 36) + SourceIndex(0) -6 >Emitted(67, 44) Source(88, 40) + SourceIndex(0) -7 >Emitted(67, 45) Source(88, 41) + SourceIndex(0) -8 >Emitted(67, 46) Source(88, 41) + SourceIndex(0) -9 >Emitted(67, 47) Source(88, 43) + SourceIndex(0) +1->Emitted(69, 21) Source(88, 10) + SourceIndex(0) +2 >Emitted(69, 28) Source(88, 17) + SourceIndex(0) +3 >Emitted(69, 31) Source(88, 27) + SourceIndex(0) +4 >Emitted(69, 33) Source(88, 29) + SourceIndex(0) +5 >Emitted(69, 40) Source(88, 36) + SourceIndex(0) +6 >Emitted(69, 44) Source(88, 40) + SourceIndex(0) +7 >Emitted(69, 45) Source(88, 41) + SourceIndex(0) +8 >Emitted(69, 46) Source(88, 41) + SourceIndex(0) +9 >Emitted(69, 47) Source(88, 43) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > } -1 >Emitted(68, 18) Source(89, 3) + SourceIndex(0) +1 >Emitted(70, 18) Source(89, 3) + SourceIndex(0) --- >>> PlainText.State = State; 1->^^^^^^^^^^^^^^^^ @@ -2030,11 +2047,11 @@ sourceFile:recursiveClassReferenceTest.ts > public getMode(): IMode { return mode; } > } 5 > -1->Emitted(69, 17) Source(78, 15) + SourceIndex(0) -2 >Emitted(69, 27) Source(78, 15) + SourceIndex(0) -3 >Emitted(69, 32) Source(78, 20) + SourceIndex(0) -4 >Emitted(69, 40) Source(89, 3) + SourceIndex(0) -5 >Emitted(69, 41) Source(89, 3) + SourceIndex(0) +1->Emitted(71, 17) Source(78, 15) + SourceIndex(0) +2 >Emitted(71, 27) Source(78, 15) + SourceIndex(0) +3 >Emitted(71, 32) Source(78, 20) + SourceIndex(0) +4 >Emitted(71, 40) Source(89, 3) + SourceIndex(0) +5 >Emitted(71, 41) Source(89, 3) + SourceIndex(0) --- >>> class Mode extends AbstractMode { 1->^^^^^^^^^^^^^^^^ @@ -2049,11 +2066,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > Mode 4 > extends 5 > AbstractMode -1->Emitted(70, 17) Source(91, 2) + SourceIndex(0) -2 >Emitted(70, 23) Source(91, 15) + SourceIndex(0) -3 >Emitted(70, 27) Source(91, 20) + SourceIndex(0) -4 >Emitted(70, 36) Source(91, 28) + SourceIndex(0) -5 >Emitted(70, 48) Source(91, 40) + SourceIndex(0) +1->Emitted(72, 17) Source(91, 2) + SourceIndex(0) +2 >Emitted(72, 23) Source(91, 15) + SourceIndex(0) +3 >Emitted(72, 27) Source(91, 20) + SourceIndex(0) +4 >Emitted(72, 36) Source(91, 28) + SourceIndex(0) +5 >Emitted(72, 48) Source(91, 40) + SourceIndex(0) --- >>> // scenario 2 1 >^^^^^^^^^^^^^^^^^^^^ @@ -2063,8 +2080,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > // scenario 2 -1 >Emitted(71, 21) Source(93, 3) + SourceIndex(0) -2 >Emitted(71, 34) Source(93, 16) + SourceIndex(0) +1 >Emitted(73, 21) Source(93, 3) + SourceIndex(0) +2 >Emitted(73, 34) Source(93, 16) + SourceIndex(0) --- >>> getInitialState() { 1->^^^^^^^^^^^^^^^^^^^^ @@ -2075,9 +2092,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getInitialState 3 > (): IState -1->Emitted(72, 21) Source(94, 10) + SourceIndex(0) -2 >Emitted(72, 36) Source(94, 25) + SourceIndex(0) -3 >Emitted(72, 39) Source(94, 36) + SourceIndex(0) +1->Emitted(74, 21) Source(94, 10) + SourceIndex(0) +2 >Emitted(74, 36) Source(94, 25) + SourceIndex(0) +3 >Emitted(74, 39) Source(94, 36) + SourceIndex(0) --- >>> return new State(self); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -2097,14 +2114,14 @@ sourceFile:recursiveClassReferenceTest.ts 6 > self 7 > ) 8 > ; -1->Emitted(73, 25) Source(95, 4) + SourceIndex(0) -2 >Emitted(73, 32) Source(95, 11) + SourceIndex(0) -3 >Emitted(73, 36) Source(95, 15) + SourceIndex(0) -4 >Emitted(73, 41) Source(95, 20) + SourceIndex(0) -5 >Emitted(73, 42) Source(95, 21) + SourceIndex(0) -6 >Emitted(73, 46) Source(95, 25) + SourceIndex(0) -7 >Emitted(73, 47) Source(95, 26) + SourceIndex(0) -8 >Emitted(73, 48) Source(95, 27) + SourceIndex(0) +1->Emitted(75, 25) Source(95, 4) + SourceIndex(0) +2 >Emitted(75, 32) Source(95, 11) + SourceIndex(0) +3 >Emitted(75, 36) Source(95, 15) + SourceIndex(0) +4 >Emitted(75, 41) Source(95, 20) + SourceIndex(0) +5 >Emitted(75, 42) Source(95, 21) + SourceIndex(0) +6 >Emitted(75, 46) Source(95, 25) + SourceIndex(0) +7 >Emitted(75, 47) Source(95, 26) + SourceIndex(0) +8 >Emitted(75, 48) Source(95, 27) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -2112,8 +2129,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > 2 > > } -1 >Emitted(74, 21) Source(95, 27) + SourceIndex(0) -2 >Emitted(74, 22) Source(96, 4) + SourceIndex(0) +1 >Emitted(76, 21) Source(95, 27) + SourceIndex(0) +2 >Emitted(76, 22) Source(96, 4) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^ @@ -2122,7 +2139,7 @@ sourceFile:recursiveClassReferenceTest.ts > > > } -1 >Emitted(75, 18) Source(99, 3) + SourceIndex(0) +1 >Emitted(77, 18) Source(99, 3) + SourceIndex(0) --- >>> PlainText.Mode = Mode; 1->^^^^^^^^^^^^^^^^ @@ -2144,11 +2161,11 @@ sourceFile:recursiveClassReferenceTest.ts > > } 5 > -1->Emitted(76, 17) Source(91, 15) + SourceIndex(0) -2 >Emitted(76, 27) Source(91, 15) + SourceIndex(0) -3 >Emitted(76, 31) Source(91, 19) + SourceIndex(0) -4 >Emitted(76, 38) Source(99, 3) + SourceIndex(0) -5 >Emitted(76, 39) Source(99, 3) + SourceIndex(0) +1->Emitted(78, 17) Source(91, 15) + SourceIndex(0) +2 >Emitted(78, 27) Source(91, 15) + SourceIndex(0) +3 >Emitted(78, 31) Source(91, 19) + SourceIndex(0) +4 >Emitted(78, 38) Source(99, 3) + SourceIndex(0) +5 >Emitted(78, 39) Source(99, 3) + SourceIndex(0) --- >>> })(PlainText = Languages.PlainText || (Languages.PlainText = {})); 1->^^^^^^^^^^^^ @@ -2198,17 +2215,17 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(77, 13) Source(99, 3) + SourceIndex(0) -2 >Emitted(77, 14) Source(100, 2) + SourceIndex(0) -3 >Emitted(77, 16) Source(76, 31) + SourceIndex(0) -4 >Emitted(77, 25) Source(76, 40) + SourceIndex(0) -5 >Emitted(77, 28) Source(76, 31) + SourceIndex(0) -6 >Emitted(77, 38) Source(76, 31) + SourceIndex(0) -7 >Emitted(77, 47) Source(76, 40) + SourceIndex(0) -8 >Emitted(77, 52) Source(76, 31) + SourceIndex(0) -9 >Emitted(77, 62) Source(76, 31) + SourceIndex(0) -10>Emitted(77, 71) Source(76, 40) + SourceIndex(0) -11>Emitted(77, 79) Source(100, 2) + SourceIndex(0) +1->Emitted(79, 13) Source(99, 3) + SourceIndex(0) +2 >Emitted(79, 14) Source(100, 2) + SourceIndex(0) +3 >Emitted(79, 16) Source(76, 31) + SourceIndex(0) +4 >Emitted(79, 25) Source(76, 40) + SourceIndex(0) +5 >Emitted(79, 28) Source(76, 31) + SourceIndex(0) +6 >Emitted(79, 38) Source(76, 31) + SourceIndex(0) +7 >Emitted(79, 47) Source(76, 40) + SourceIndex(0) +8 >Emitted(79, 52) Source(76, 31) + SourceIndex(0) +9 >Emitted(79, 62) Source(76, 31) + SourceIndex(0) +10>Emitted(79, 71) Source(76, 40) + SourceIndex(0) +11>Emitted(79, 79) Source(100, 2) + SourceIndex(0) --- >>> })(Languages = Thing.Languages || (Thing.Languages = {})); 1 >^^^^^^^^ @@ -2335,18 +2352,18 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(78, 9) Source(99, 3) + SourceIndex(0) -2 >Emitted(78, 10) Source(100, 1) + SourceIndex(0) -3 >Emitted(78, 10) Source(1, 1) + SourceIndex(0) -4 >Emitted(78, 12) Source(76, 21) + SourceIndex(0) -5 >Emitted(78, 21) Source(76, 30) + SourceIndex(0) -6 >Emitted(78, 24) Source(76, 21) + SourceIndex(0) -7 >Emitted(78, 30) Source(76, 21) + SourceIndex(0) -8 >Emitted(78, 39) Source(76, 30) + SourceIndex(0) -9 >Emitted(78, 44) Source(76, 21) + SourceIndex(0) -10>Emitted(78, 50) Source(76, 21) + SourceIndex(0) -11>Emitted(78, 59) Source(76, 30) + SourceIndex(0) -12>Emitted(78, 67) Source(100, 2) + SourceIndex(0) +1 >Emitted(80, 9) Source(99, 3) + SourceIndex(0) +2 >Emitted(80, 10) Source(100, 1) + SourceIndex(0) +3 >Emitted(80, 10) Source(1, 1) + SourceIndex(0) +4 >Emitted(80, 12) Source(76, 21) + SourceIndex(0) +5 >Emitted(80, 21) Source(76, 30) + SourceIndex(0) +6 >Emitted(80, 24) Source(76, 21) + SourceIndex(0) +7 >Emitted(80, 30) Source(76, 21) + SourceIndex(0) +8 >Emitted(80, 39) Source(76, 30) + SourceIndex(0) +9 >Emitted(80, 44) Source(76, 21) + SourceIndex(0) +10>Emitted(80, 50) Source(76, 21) + SourceIndex(0) +11>Emitted(80, 59) Source(76, 30) + SourceIndex(0) +12>Emitted(80, 67) Source(100, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -2473,18 +2490,18 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(79, 5) Source(99, 3) + SourceIndex(0) -2 >Emitted(79, 6) Source(100, 1) + SourceIndex(0) -3 >Emitted(79, 6) Source(1, 1) + SourceIndex(0) -4 >Emitted(79, 8) Source(76, 15) + SourceIndex(0) -5 >Emitted(79, 13) Source(76, 20) + SourceIndex(0) -6 >Emitted(79, 16) Source(76, 15) + SourceIndex(0) -7 >Emitted(79, 23) Source(76, 15) + SourceIndex(0) -8 >Emitted(79, 28) Source(76, 20) + SourceIndex(0) -9 >Emitted(79, 33) Source(76, 15) + SourceIndex(0) -10>Emitted(79, 40) Source(76, 15) + SourceIndex(0) -11>Emitted(79, 45) Source(76, 20) + SourceIndex(0) -12>Emitted(79, 53) Source(100, 2) + SourceIndex(0) +1 >Emitted(81, 5) Source(99, 3) + SourceIndex(0) +2 >Emitted(81, 6) Source(100, 1) + SourceIndex(0) +3 >Emitted(81, 6) Source(1, 1) + SourceIndex(0) +4 >Emitted(81, 8) Source(76, 15) + SourceIndex(0) +5 >Emitted(81, 13) Source(76, 20) + SourceIndex(0) +6 >Emitted(81, 16) Source(76, 15) + SourceIndex(0) +7 >Emitted(81, 23) Source(76, 15) + SourceIndex(0) +8 >Emitted(81, 28) Source(76, 20) + SourceIndex(0) +9 >Emitted(81, 33) Source(76, 15) + SourceIndex(0) +10>Emitted(81, 40) Source(76, 15) + SourceIndex(0) +11>Emitted(81, 45) Source(76, 20) + SourceIndex(0) +12>Emitted(81, 53) Source(100, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -2604,13 +2621,13 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(80, 1) Source(99, 3) + SourceIndex(0) -2 >Emitted(80, 2) Source(100, 1) + SourceIndex(0) -3 >Emitted(80, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(80, 4) Source(76, 8) + SourceIndex(0) -5 >Emitted(80, 10) Source(76, 14) + SourceIndex(0) -6 >Emitted(80, 15) Source(76, 8) + SourceIndex(0) -7 >Emitted(80, 21) Source(76, 14) + SourceIndex(0) -8 >Emitted(80, 29) Source(100, 2) + SourceIndex(0) +1 >Emitted(82, 1) Source(99, 3) + SourceIndex(0) +2 >Emitted(82, 2) Source(100, 1) + SourceIndex(0) +3 >Emitted(82, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(82, 4) Source(76, 8) + SourceIndex(0) +5 >Emitted(82, 10) Source(76, 14) + SourceIndex(0) +6 >Emitted(82, 15) Source(76, 8) + SourceIndex(0) +7 >Emitted(82, 21) Source(76, 14) + SourceIndex(0) +8 >Emitted(82, 29) Source(100, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=recursiveClassReferenceTest.js.map \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt.diff b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt.diff index 93b2d5d6c0..683d991fed 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveClassReferenceTest.sourcemap.txt.diff @@ -1,41 +1,16 @@ --- old.recursiveClassReferenceTest.sourcemap.txt +++ new.recursiveClassReferenceTest.sourcemap.txt -@@= skipped -7, +7 lines =@@ - emittedFile:recursiveClassReferenceTest.js - sourceFile:recursiveClassReferenceTest.ts - ------------------------------------------------------------------- -->>>// Scenario 1: Test reqursive function call with "this" parameter --1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --3 > ^^^^^^^^^^-> --1 > --2 >// Scenario 1: Test reqursive function call with "this" parameter --1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) --2 >Emitted(1, 66) Source(1, 66) + SourceIndex(0) ----- -->>>// Scenario 2: Test recursive function call with cast and "this" parameter --1-> --2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --1-> -- > --2 >// Scenario 2: Test recursive function call with cast and "this" parameter --1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) --2 >Emitted(2, 75) Source(2, 75) + SourceIndex(0) ----- - >>>var Sample; +@@= skipped -29, +29 lines =@@ 1 > 2 >^^^^ 3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> --1 > +4 > ^^^^^^^^^^^-> -+1 >// Scenario 1: Test reqursive function call with "this" parameter -+ >// Scenario 2: Test recursive function call with cast and "this" parameter - > + 1 > > > -@@= skipped -56, +38 lines =@@ +@@= skipped -34, +33 lines =@@ > > 2 >module @@ -51,10 +26,6 @@ - > } - > } - > } --1 >Emitted(3, 1) Source(32, 1) + SourceIndex(0) --2 >Emitted(3, 5) Source(32, 8) + SourceIndex(0) --3 >Emitted(3, 11) Source(32, 14) + SourceIndex(0) --4 >Emitted(3, 12) Source(42, 2) + SourceIndex(0) +3 > Sample.Actions.Thing.Find { + > export class StartFindAction implements Sample.Thing.IAction { + > @@ -66,9 +37,11 @@ + > } + > } + > } -+1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) -+2 >Emitted(1, 5) Source(32, 8) + SourceIndex(0) -+3 >Emitted(1, 11) Source(42, 2) + SourceIndex(0) + 1 >Emitted(3, 1) Source(32, 1) + SourceIndex(0) + 2 >Emitted(3, 5) Source(32, 8) + SourceIndex(0) +-3 >Emitted(3, 11) Source(32, 14) + SourceIndex(0) +-4 >Emitted(3, 12) Source(42, 2) + SourceIndex(0) ++3 >Emitted(3, 11) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -78,14 +51,11 @@ 1-> 2 >module 3 > Sample --1->Emitted(4, 1) Source(32, 1) + SourceIndex(0) --2 >Emitted(4, 12) Source(32, 8) + SourceIndex(0) --3 >Emitted(4, 18) Source(32, 14) + SourceIndex(0) +4 > -+1->Emitted(2, 1) Source(32, 1) + SourceIndex(0) -+2 >Emitted(2, 12) Source(32, 8) + SourceIndex(0) -+3 >Emitted(2, 18) Source(32, 14) + SourceIndex(0) -+4 >Emitted(2, 20) Source(6, 1) + SourceIndex(0) + 1->Emitted(4, 1) Source(32, 1) + SourceIndex(0) + 2 >Emitted(4, 12) Source(32, 8) + SourceIndex(0) + 3 >Emitted(4, 18) Source(32, 14) + SourceIndex(0) ++4 >Emitted(4, 20) Source(6, 1) + SourceIndex(0) --- ->>> var Actions; +>>> let Actions; @@ -136,10 +106,6 @@ - > } - > } - > } --1 >Emitted(5, 5) Source(32, 15) + SourceIndex(0) --2 >Emitted(5, 9) Source(32, 15) + SourceIndex(0) --3 >Emitted(5, 16) Source(32, 22) + SourceIndex(0) --4 >Emitted(5, 17) Source(42, 2) + SourceIndex(0) +3 > Actions.Thing.Find { + > export class StartFindAction implements Sample.Thing.IAction { + > @@ -151,9 +117,11 @@ + > } + > } + > } -+1 >Emitted(3, 5) Source(32, 15) + SourceIndex(0) -+2 >Emitted(3, 9) Source(32, 15) + SourceIndex(0) -+3 >Emitted(3, 16) Source(42, 2) + SourceIndex(0) + 1 >Emitted(5, 5) Source(32, 15) + SourceIndex(0) + 2 >Emitted(5, 9) Source(32, 15) + SourceIndex(0) +-3 >Emitted(5, 16) Source(32, 22) + SourceIndex(0) +-4 >Emitted(5, 17) Source(42, 2) + SourceIndex(0) ++3 >Emitted(5, 16) Source(42, 2) + SourceIndex(0) --- >>> (function (Actions) { 1->^^^^ @@ -163,14 +131,11 @@ 1-> 2 > 3 > Actions --1->Emitted(6, 5) Source(32, 15) + SourceIndex(0) --2 >Emitted(6, 16) Source(32, 15) + SourceIndex(0) --3 >Emitted(6, 23) Source(32, 22) + SourceIndex(0) +4 > -+1->Emitted(4, 5) Source(32, 15) + SourceIndex(0) -+2 >Emitted(4, 16) Source(32, 15) + SourceIndex(0) -+3 >Emitted(4, 23) Source(32, 22) + SourceIndex(0) -+4 >Emitted(4, 25) Source(6, 1) + SourceIndex(0) + 1->Emitted(6, 5) Source(32, 15) + SourceIndex(0) + 2 >Emitted(6, 16) Source(32, 15) + SourceIndex(0) + 3 >Emitted(6, 23) Source(32, 22) + SourceIndex(0) ++4 >Emitted(6, 25) Source(6, 1) + SourceIndex(0) --- ->>> var Thing; +>>> let Thing; @@ -221,10 +186,6 @@ - > } - > } - > } --1 >Emitted(7, 9) Source(32, 23) + SourceIndex(0) --2 >Emitted(7, 13) Source(32, 23) + SourceIndex(0) --3 >Emitted(7, 18) Source(32, 28) + SourceIndex(0) --4 >Emitted(7, 19) Source(42, 2) + SourceIndex(0) +3 > Thing.Find { + > export class StartFindAction implements Sample.Thing.IAction { + > @@ -236,9 +197,11 @@ + > } + > } + > } -+1 >Emitted(5, 9) Source(32, 23) + SourceIndex(0) -+2 >Emitted(5, 13) Source(32, 23) + SourceIndex(0) -+3 >Emitted(5, 18) Source(42, 2) + SourceIndex(0) + 1 >Emitted(7, 9) Source(32, 23) + SourceIndex(0) + 2 >Emitted(7, 13) Source(32, 23) + SourceIndex(0) +-3 >Emitted(7, 18) Source(32, 28) + SourceIndex(0) +-4 >Emitted(7, 19) Source(42, 2) + SourceIndex(0) ++3 >Emitted(7, 18) Source(42, 2) + SourceIndex(0) --- >>> (function (Thing_1) { 1->^^^^^^^^ @@ -248,14 +211,11 @@ 1-> 2 > 3 > Thing --1->Emitted(8, 9) Source(32, 23) + SourceIndex(0) --2 >Emitted(8, 20) Source(32, 23) + SourceIndex(0) --3 >Emitted(8, 27) Source(32, 28) + SourceIndex(0) +4 > -+1->Emitted(6, 9) Source(32, 23) + SourceIndex(0) -+2 >Emitted(6, 20) Source(32, 23) + SourceIndex(0) -+3 >Emitted(6, 27) Source(32, 28) + SourceIndex(0) -+4 >Emitted(6, 29) Source(6, 1) + SourceIndex(0) + 1->Emitted(8, 9) Source(32, 23) + SourceIndex(0) + 2 >Emitted(8, 20) Source(32, 23) + SourceIndex(0) + 3 >Emitted(8, 27) Source(32, 28) + SourceIndex(0) ++4 >Emitted(8, 29) Source(6, 1) + SourceIndex(0) --- ->>> var Find; +>>> let Find; @@ -306,10 +266,6 @@ - > } - > } - > } --1 >Emitted(9, 13) Source(32, 29) + SourceIndex(0) --2 >Emitted(9, 17) Source(32, 29) + SourceIndex(0) --3 >Emitted(9, 21) Source(32, 33) + SourceIndex(0) --4 >Emitted(9, 22) Source(42, 2) + SourceIndex(0) +3 > Find { + > export class StartFindAction implements Sample.Thing.IAction { + > @@ -321,9 +277,11 @@ + > } + > } + > } -+1 >Emitted(7, 13) Source(32, 29) + SourceIndex(0) -+2 >Emitted(7, 17) Source(32, 29) + SourceIndex(0) -+3 >Emitted(7, 21) Source(42, 2) + SourceIndex(0) + 1 >Emitted(9, 13) Source(32, 29) + SourceIndex(0) + 2 >Emitted(9, 17) Source(32, 29) + SourceIndex(0) +-3 >Emitted(9, 21) Source(32, 33) + SourceIndex(0) +-4 >Emitted(9, 22) Source(42, 2) + SourceIndex(0) ++3 >Emitted(9, 21) Source(42, 2) + SourceIndex(0) --- >>> (function (Find) { 1->^^^^^^^^^^^^ @@ -335,14 +293,11 @@ 1-> 2 > 3 > Find --1->Emitted(10, 13) Source(32, 29) + SourceIndex(0) --2 >Emitted(10, 24) Source(32, 29) + SourceIndex(0) --3 >Emitted(10, 28) Source(32, 33) + SourceIndex(0) +4 > -+1->Emitted(8, 13) Source(32, 29) + SourceIndex(0) -+2 >Emitted(8, 24) Source(32, 29) + SourceIndex(0) -+3 >Emitted(8, 28) Source(32, 33) + SourceIndex(0) -+4 >Emitted(8, 30) Source(32, 34) + SourceIndex(0) + 1->Emitted(10, 13) Source(32, 29) + SourceIndex(0) + 2 >Emitted(10, 24) Source(32, 29) + SourceIndex(0) + 3 >Emitted(10, 28) Source(32, 33) + SourceIndex(0) ++4 >Emitted(10, 30) Source(32, 34) + SourceIndex(0) --- >>> class StartFindAction { 1->^^^^^^^^^^^^^^^^ @@ -354,13 +309,7 @@ > 2 > export class 3 > StartFindAction --1->Emitted(11, 17) Source(33, 2) + SourceIndex(0) --2 >Emitted(11, 23) Source(33, 15) + SourceIndex(0) --3 >Emitted(11, 38) Source(33, 30) + SourceIndex(0) -+1->Emitted(9, 17) Source(33, 2) + SourceIndex(0) -+2 >Emitted(9, 23) Source(33, 15) + SourceIndex(0) -+3 >Emitted(9, 38) Source(33, 30) + SourceIndex(0) - --- +@@= skipped -153, +232 lines =@@ >>> getId() { return "yo"; } 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^ @@ -387,14 +336,6 @@ -6 > ; -7 > -8 > } --1->Emitted(12, 21) Source(35, 10) + SourceIndex(0) --2 >Emitted(12, 26) Source(35, 15) + SourceIndex(0) --3 >Emitted(12, 31) Source(35, 20) + SourceIndex(0) --4 >Emitted(12, 38) Source(35, 27) + SourceIndex(0) --5 >Emitted(12, 42) Source(35, 31) + SourceIndex(0) --6 >Emitted(12, 43) Source(35, 32) + SourceIndex(0) --7 >Emitted(12, 44) Source(35, 33) + SourceIndex(0) --8 >Emitted(12, 45) Source(35, 34) + SourceIndex(0) +3 > () +4 > { +5 > return @@ -402,15 +343,21 @@ +7 > ; +8 > +9 > } -+1->Emitted(10, 21) Source(35, 10) + SourceIndex(0) -+2 >Emitted(10, 26) Source(35, 15) + SourceIndex(0) -+3 >Emitted(10, 29) Source(35, 18) + SourceIndex(0) -+4 >Emitted(10, 31) Source(35, 20) + SourceIndex(0) -+5 >Emitted(10, 38) Source(35, 27) + SourceIndex(0) -+6 >Emitted(10, 42) Source(35, 31) + SourceIndex(0) -+7 >Emitted(10, 43) Source(35, 32) + SourceIndex(0) -+8 >Emitted(10, 44) Source(35, 32) + SourceIndex(0) -+9 >Emitted(10, 45) Source(35, 34) + SourceIndex(0) + 1->Emitted(12, 21) Source(35, 10) + SourceIndex(0) + 2 >Emitted(12, 26) Source(35, 15) + SourceIndex(0) +-3 >Emitted(12, 31) Source(35, 20) + SourceIndex(0) +-4 >Emitted(12, 38) Source(35, 27) + SourceIndex(0) +-5 >Emitted(12, 42) Source(35, 31) + SourceIndex(0) +-6 >Emitted(12, 43) Source(35, 32) + SourceIndex(0) +-7 >Emitted(12, 44) Source(35, 33) + SourceIndex(0) +-8 >Emitted(12, 45) Source(35, 34) + SourceIndex(0) ++3 >Emitted(12, 29) Source(35, 18) + SourceIndex(0) ++4 >Emitted(12, 31) Source(35, 20) + SourceIndex(0) ++5 >Emitted(12, 38) Source(35, 27) + SourceIndex(0) ++6 >Emitted(12, 42) Source(35, 31) + SourceIndex(0) ++7 >Emitted(12, 43) Source(35, 32) + SourceIndex(0) ++8 >Emitted(12, 44) Source(35, 32) + SourceIndex(0) ++9 >Emitted(12, 45) Source(35, 34) + SourceIndex(0) --- >>> run(Thing) { 1 >^^^^^^^^^^^^^^^^^^^^ @@ -426,16 +373,12 @@ 2 > run 3 > ( 4 > Thing:Sample.Thing.ICodeThing --1 >Emitted(13, 21) Source(37, 10) + SourceIndex(0) --2 >Emitted(13, 24) Source(37, 13) + SourceIndex(0) --3 >Emitted(13, 25) Source(37, 14) + SourceIndex(0) --4 >Emitted(13, 30) Source(37, 43) + SourceIndex(0) +5 > ):boolean -+1 >Emitted(11, 21) Source(37, 10) + SourceIndex(0) -+2 >Emitted(11, 24) Source(37, 13) + SourceIndex(0) -+3 >Emitted(11, 25) Source(37, 14) + SourceIndex(0) -+4 >Emitted(11, 30) Source(37, 43) + SourceIndex(0) -+5 >Emitted(11, 32) Source(37, 53) + SourceIndex(0) + 1 >Emitted(13, 21) Source(37, 10) + SourceIndex(0) + 2 >Emitted(13, 24) Source(37, 13) + SourceIndex(0) + 3 >Emitted(13, 25) Source(37, 14) + SourceIndex(0) + 4 >Emitted(13, 30) Source(37, 43) + SourceIndex(0) ++5 >Emitted(13, 32) Source(37, 53) + SourceIndex(0) --- >>> return true; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -447,37 +390,20 @@ > > 2 > return - 3 > true - 4 > ; --1->Emitted(14, 25) Source(39, 4) + SourceIndex(0) --2 >Emitted(14, 32) Source(39, 11) + SourceIndex(0) --3 >Emitted(14, 36) Source(39, 15) + SourceIndex(0) --4 >Emitted(14, 37) Source(39, 16) + SourceIndex(0) -+1->Emitted(12, 25) Source(39, 4) + SourceIndex(0) -+2 >Emitted(12, 32) Source(39, 11) + SourceIndex(0) -+3 >Emitted(12, 36) Source(39, 15) + SourceIndex(0) -+4 >Emitted(12, 37) Source(39, 16) + SourceIndex(0) - --- - >>> } +@@= skipped -62, +68 lines =@@ 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ 1 > - > -2 > } -1 >Emitted(15, 21) Source(40, 3) + SourceIndex(0) --2 >Emitted(15, 22) Source(40, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(13, 21) Source(39, 16) + SourceIndex(0) -+2 >Emitted(13, 22) Source(40, 4) + SourceIndex(0) ++1 >Emitted(15, 21) Source(39, 16) + SourceIndex(0) + 2 >Emitted(15, 22) Source(40, 4) + SourceIndex(0) --- >>> } - 1 >^^^^^^^^^^^^^^^^^ - 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> - 1 > - > } --1 >Emitted(16, 18) Source(41, 3) + SourceIndex(0) -+1 >Emitted(14, 18) Source(41, 3) + SourceIndex(0) +@@= skipped -14, +14 lines =@@ --- >>> Find.StartFindAction = StartFindAction; 1->^^^^^^^^^^^^^^^^ @@ -499,21 +425,20 @@ > > public getId() { return "yo"; } > -@@= skipped -244, +331 lines =@@ +@@= skipped -15, +17 lines =@@ > return true; > } > } -4 > --1->Emitted(17, 17) Source(33, 15) + SourceIndex(0) ++5 > + 1->Emitted(17, 17) Source(33, 15) + SourceIndex(0) -2 >Emitted(17, 37) Source(33, 30) + SourceIndex(0) -3 >Emitted(17, 55) Source(41, 3) + SourceIndex(0) -4 >Emitted(17, 56) Source(41, 3) + SourceIndex(0) -+5 > -+1->Emitted(15, 17) Source(33, 15) + SourceIndex(0) -+2 >Emitted(15, 22) Source(33, 15) + SourceIndex(0) -+3 >Emitted(15, 37) Source(33, 30) + SourceIndex(0) -+4 >Emitted(15, 55) Source(41, 3) + SourceIndex(0) -+5 >Emitted(15, 56) Source(41, 3) + SourceIndex(0) ++2 >Emitted(17, 22) Source(33, 15) + SourceIndex(0) ++3 >Emitted(17, 37) Source(33, 30) + SourceIndex(0) ++4 >Emitted(17, 55) Source(41, 3) + SourceIndex(0) ++5 >Emitted(17, 56) Source(41, 3) + SourceIndex(0) --- >>> })(Find = Thing_1.Find || (Thing_1.Find = {})); 1->^^^^^^^^^^^^ @@ -557,25 +482,21 @@ > } > } -1->Emitted(18, 13) Source(42, 1) + SourceIndex(0) --2 >Emitted(18, 14) Source(42, 2) + SourceIndex(0) --3 >Emitted(18, 16) Source(32, 29) + SourceIndex(0) --4 >Emitted(18, 20) Source(32, 33) + SourceIndex(0) --5 >Emitted(18, 23) Source(32, 29) + SourceIndex(0) ++1->Emitted(18, 13) Source(41, 3) + SourceIndex(0) + 2 >Emitted(18, 14) Source(42, 2) + SourceIndex(0) + 3 >Emitted(18, 16) Source(32, 29) + SourceIndex(0) + 4 >Emitted(18, 20) Source(32, 33) + SourceIndex(0) + 5 >Emitted(18, 23) Source(32, 29) + SourceIndex(0) -6 >Emitted(18, 35) Source(32, 33) + SourceIndex(0) -7 >Emitted(18, 40) Source(32, 29) + SourceIndex(0) -8 >Emitted(18, 52) Source(32, 33) + SourceIndex(0) -9 >Emitted(18, 60) Source(42, 2) + SourceIndex(0) -+1->Emitted(16, 13) Source(41, 3) + SourceIndex(0) -+2 >Emitted(16, 14) Source(42, 2) + SourceIndex(0) -+3 >Emitted(16, 16) Source(32, 29) + SourceIndex(0) -+4 >Emitted(16, 20) Source(32, 33) + SourceIndex(0) -+5 >Emitted(16, 23) Source(32, 29) + SourceIndex(0) -+6 >Emitted(16, 31) Source(32, 29) + SourceIndex(0) -+7 >Emitted(16, 35) Source(32, 33) + SourceIndex(0) -+8 >Emitted(16, 40) Source(32, 29) + SourceIndex(0) -+9 >Emitted(16, 48) Source(32, 29) + SourceIndex(0) -+10>Emitted(16, 52) Source(32, 33) + SourceIndex(0) -+11>Emitted(16, 60) Source(42, 2) + SourceIndex(0) ++6 >Emitted(18, 31) Source(32, 29) + SourceIndex(0) ++7 >Emitted(18, 35) Source(32, 33) + SourceIndex(0) ++8 >Emitted(18, 40) Source(32, 29) + SourceIndex(0) ++9 >Emitted(18, 48) Source(32, 29) + SourceIndex(0) ++10>Emitted(18, 52) Source(32, 33) + SourceIndex(0) ++11>Emitted(18, 60) Source(42, 2) + SourceIndex(0) --- >>> })(Thing = Actions.Thing || (Actions.Thing = {})); 1 >^^^^^^^^ @@ -666,18 +587,18 @@ -7 >Emitted(19, 38) Source(32, 23) + SourceIndex(0) -8 >Emitted(19, 51) Source(32, 28) + SourceIndex(0) -9 >Emitted(19, 59) Source(42, 2) + SourceIndex(0) -+1 >Emitted(17, 9) Source(41, 3) + SourceIndex(0) -+2 >Emitted(17, 10) Source(42, 1) + SourceIndex(0) -+3 >Emitted(17, 10) Source(1, 1) + SourceIndex(0) -+4 >Emitted(17, 12) Source(32, 23) + SourceIndex(0) -+5 >Emitted(17, 17) Source(32, 28) + SourceIndex(0) -+6 >Emitted(17, 20) Source(32, 23) + SourceIndex(0) -+7 >Emitted(17, 28) Source(32, 23) + SourceIndex(0) -+8 >Emitted(17, 33) Source(32, 28) + SourceIndex(0) -+9 >Emitted(17, 38) Source(32, 23) + SourceIndex(0) -+10>Emitted(17, 46) Source(32, 23) + SourceIndex(0) -+11>Emitted(17, 51) Source(32, 28) + SourceIndex(0) -+12>Emitted(17, 59) Source(42, 2) + SourceIndex(0) ++1 >Emitted(19, 9) Source(41, 3) + SourceIndex(0) ++2 >Emitted(19, 10) Source(42, 1) + SourceIndex(0) ++3 >Emitted(19, 10) Source(1, 1) + SourceIndex(0) ++4 >Emitted(19, 12) Source(32, 23) + SourceIndex(0) ++5 >Emitted(19, 17) Source(32, 28) + SourceIndex(0) ++6 >Emitted(19, 20) Source(32, 23) + SourceIndex(0) ++7 >Emitted(19, 28) Source(32, 23) + SourceIndex(0) ++8 >Emitted(19, 33) Source(32, 28) + SourceIndex(0) ++9 >Emitted(19, 38) Source(32, 23) + SourceIndex(0) ++10>Emitted(19, 46) Source(32, 23) + SourceIndex(0) ++11>Emitted(19, 51) Source(32, 28) + SourceIndex(0) ++12>Emitted(19, 59) Source(42, 2) + SourceIndex(0) --- >>> })(Actions = Sample.Actions || (Sample.Actions = {})); 1->^^^^ @@ -766,18 +687,18 @@ -7 >Emitted(20, 37) Source(32, 15) + SourceIndex(0) -8 >Emitted(20, 51) Source(32, 22) + SourceIndex(0) -9 >Emitted(20, 59) Source(42, 2) + SourceIndex(0) -+1->Emitted(18, 5) Source(41, 3) + SourceIndex(0) -+2 >Emitted(18, 6) Source(42, 1) + SourceIndex(0) -+3 >Emitted(18, 6) Source(1, 1) + SourceIndex(0) -+4 >Emitted(18, 8) Source(32, 15) + SourceIndex(0) -+5 >Emitted(18, 15) Source(32, 22) + SourceIndex(0) -+6 >Emitted(18, 18) Source(32, 15) + SourceIndex(0) -+7 >Emitted(18, 25) Source(32, 15) + SourceIndex(0) -+8 >Emitted(18, 32) Source(32, 22) + SourceIndex(0) -+9 >Emitted(18, 37) Source(32, 15) + SourceIndex(0) -+10>Emitted(18, 44) Source(32, 15) + SourceIndex(0) -+11>Emitted(18, 51) Source(32, 22) + SourceIndex(0) -+12>Emitted(18, 59) Source(42, 2) + SourceIndex(0) ++1->Emitted(20, 5) Source(41, 3) + SourceIndex(0) ++2 >Emitted(20, 6) Source(42, 1) + SourceIndex(0) ++3 >Emitted(20, 6) Source(1, 1) + SourceIndex(0) ++4 >Emitted(20, 8) Source(32, 15) + SourceIndex(0) ++5 >Emitted(20, 15) Source(32, 22) + SourceIndex(0) ++6 >Emitted(20, 18) Source(32, 15) + SourceIndex(0) ++7 >Emitted(20, 25) Source(32, 15) + SourceIndex(0) ++8 >Emitted(20, 32) Source(32, 22) + SourceIndex(0) ++9 >Emitted(20, 37) Source(32, 15) + SourceIndex(0) ++10>Emitted(20, 44) Source(32, 15) + SourceIndex(0) ++11>Emitted(20, 51) Source(32, 22) + SourceIndex(0) ++12>Emitted(20, 59) Source(42, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -852,14 +773,14 @@ -5 >Emitted(21, 15) Source(32, 8) + SourceIndex(0) -6 >Emitted(21, 21) Source(32, 14) + SourceIndex(0) -7 >Emitted(21, 29) Source(42, 2) + SourceIndex(0) -+1 >Emitted(19, 1) Source(41, 3) + SourceIndex(0) -+2 >Emitted(19, 2) Source(42, 1) + SourceIndex(0) -+3 >Emitted(19, 2) Source(1, 1) + SourceIndex(0) -+4 >Emitted(19, 4) Source(32, 8) + SourceIndex(0) -+5 >Emitted(19, 10) Source(32, 14) + SourceIndex(0) -+6 >Emitted(19, 15) Source(32, 8) + SourceIndex(0) -+7 >Emitted(19, 21) Source(32, 14) + SourceIndex(0) -+8 >Emitted(19, 29) Source(42, 2) + SourceIndex(0) ++1 >Emitted(21, 1) Source(41, 3) + SourceIndex(0) ++2 >Emitted(21, 2) Source(42, 1) + SourceIndex(0) ++3 >Emitted(21, 2) Source(1, 1) + SourceIndex(0) ++4 >Emitted(21, 4) Source(32, 8) + SourceIndex(0) ++5 >Emitted(21, 10) Source(32, 14) + SourceIndex(0) ++6 >Emitted(21, 15) Source(32, 8) + SourceIndex(0) ++7 >Emitted(21, 21) Source(32, 14) + SourceIndex(0) ++8 >Emitted(21, 29) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1 > @@ -871,14 +792,11 @@ > 2 >module 3 > Sample --1 >Emitted(22, 1) Source(44, 1) + SourceIndex(0) --2 >Emitted(22, 12) Source(44, 8) + SourceIndex(0) --3 >Emitted(22, 18) Source(44, 14) + SourceIndex(0) +4 > -+1 >Emitted(20, 1) Source(44, 1) + SourceIndex(0) -+2 >Emitted(20, 12) Source(44, 8) + SourceIndex(0) -+3 >Emitted(20, 18) Source(44, 14) + SourceIndex(0) -+4 >Emitted(20, 20) Source(6, 1) + SourceIndex(0) + 1 >Emitted(22, 1) Source(44, 1) + SourceIndex(0) + 2 >Emitted(22, 12) Source(44, 8) + SourceIndex(0) + 3 >Emitted(22, 18) Source(44, 14) + SourceIndex(0) ++4 >Emitted(22, 20) Source(6, 1) + SourceIndex(0) --- ->>> var Thing; +>>> let Thing; @@ -951,10 +869,6 @@ - > - > } - > } --1 >Emitted(23, 5) Source(44, 15) + SourceIndex(0) --2 >Emitted(23, 9) Source(44, 15) + SourceIndex(0) --3 >Emitted(23, 14) Source(44, 20) + SourceIndex(0) --4 >Emitted(23, 15) Source(64, 2) + SourceIndex(0) +3 > Thing.Widgets { + > export class FindWidget implements Sample.Thing.IWidget { + > @@ -976,9 +890,11 @@ + > + > } + > } -+1 >Emitted(21, 5) Source(44, 15) + SourceIndex(0) -+2 >Emitted(21, 9) Source(44, 15) + SourceIndex(0) -+3 >Emitted(21, 14) Source(64, 2) + SourceIndex(0) + 1 >Emitted(23, 5) Source(44, 15) + SourceIndex(0) + 2 >Emitted(23, 9) Source(44, 15) + SourceIndex(0) +-3 >Emitted(23, 14) Source(44, 20) + SourceIndex(0) +-4 >Emitted(23, 15) Source(64, 2) + SourceIndex(0) ++3 >Emitted(23, 14) Source(64, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -989,14 +905,11 @@ 1-> 2 > 3 > Thing --1->Emitted(24, 5) Source(44, 15) + SourceIndex(0) --2 >Emitted(24, 16) Source(44, 15) + SourceIndex(0) --3 >Emitted(24, 21) Source(44, 20) + SourceIndex(0) +4 > -+1->Emitted(22, 5) Source(44, 15) + SourceIndex(0) -+2 >Emitted(22, 16) Source(44, 15) + SourceIndex(0) -+3 >Emitted(22, 21) Source(44, 20) + SourceIndex(0) -+4 >Emitted(22, 23) Source(6, 1) + SourceIndex(0) + 1->Emitted(24, 5) Source(44, 15) + SourceIndex(0) + 2 >Emitted(24, 16) Source(44, 15) + SourceIndex(0) + 3 >Emitted(24, 21) Source(44, 20) + SourceIndex(0) ++4 >Emitted(24, 23) Source(6, 1) + SourceIndex(0) --- ->>> var Widgets; -1->^^^^^^^^ @@ -1071,9 +984,6 @@ - > } - > } -1->Emitted(25, 9) Source(44, 21) + SourceIndex(0) --2 >Emitted(25, 13) Source(44, 21) + SourceIndex(0) --3 >Emitted(25, 20) Source(44, 28) + SourceIndex(0) --4 >Emitted(25, 21) Source(64, 2) + SourceIndex(0) +3 > Widgets { + > export class FindWidget implements Sample.Thing.IWidget { + > @@ -1095,9 +1005,11 @@ + > + > } + > } -+1 >Emitted(23, 9) Source(44, 21) + SourceIndex(0) -+2 >Emitted(23, 13) Source(44, 21) + SourceIndex(0) -+3 >Emitted(23, 20) Source(64, 2) + SourceIndex(0) ++1 >Emitted(25, 9) Source(44, 21) + SourceIndex(0) + 2 >Emitted(25, 13) Source(44, 21) + SourceIndex(0) +-3 >Emitted(25, 20) Source(44, 28) + SourceIndex(0) +-4 >Emitted(25, 21) Source(64, 2) + SourceIndex(0) ++3 >Emitted(25, 20) Source(64, 2) + SourceIndex(0) --- >>> (function (Widgets) { 1->^^^^^^^^ @@ -1109,14 +1021,11 @@ 1-> 2 > 3 > Widgets --1->Emitted(26, 9) Source(44, 21) + SourceIndex(0) --2 >Emitted(26, 20) Source(44, 21) + SourceIndex(0) --3 >Emitted(26, 27) Source(44, 28) + SourceIndex(0) +4 > -+1->Emitted(24, 9) Source(44, 21) + SourceIndex(0) -+2 >Emitted(24, 20) Source(44, 21) + SourceIndex(0) -+3 >Emitted(24, 27) Source(44, 28) + SourceIndex(0) -+4 >Emitted(24, 29) Source(44, 29) + SourceIndex(0) + 1->Emitted(26, 9) Source(44, 21) + SourceIndex(0) + 2 >Emitted(26, 20) Source(44, 21) + SourceIndex(0) + 3 >Emitted(26, 27) Source(44, 28) + SourceIndex(0) ++4 >Emitted(26, 29) Source(44, 29) + SourceIndex(0) --- >>> class FindWidget { 1->^^^^^^^^^^^^ @@ -1128,13 +1037,10 @@ > 2 > export class 3 > FindWidget --1->Emitted(27, 13) Source(45, 2) + SourceIndex(0) --2 >Emitted(27, 19) Source(45, 15) + SourceIndex(0) --3 >Emitted(27, 29) Source(45, 25) + SourceIndex(0) -+1->Emitted(25, 13) Source(45, 2) + SourceIndex(0) -+2 >Emitted(25, 19) Source(45, 15) + SourceIndex(0) -+3 >Emitted(25, 29) Source(45, 25) + SourceIndex(0) -+--- +@@= skipped -128, +206 lines =@@ + 2 >Emitted(27, 19) Source(45, 15) + SourceIndex(0) + 3 >Emitted(27, 29) Source(45, 25) + SourceIndex(0) + --- +>>> codeThing; +1 >^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^ @@ -1146,9 +1052,9 @@ + > private domNode:any = null; + > constructor(private +2 > codeThing -+1 >Emitted(26, 17) Source(50, 23) + SourceIndex(0) -+2 >Emitted(26, 26) Source(50, 32) + SourceIndex(0) - --- ++1 >Emitted(28, 17) Source(50, 23) + SourceIndex(0) ++2 >Emitted(28, 26) Source(50, 32) + SourceIndex(0) ++--- >>> gar(runner) { if (true) { 1->^^^^^^^^^^^^^^^^ 2 > ^^^ @@ -1192,20 +1098,20 @@ +8 > true +9 > ) +10> { -+1->Emitted(27, 17) Source(47, 10) + SourceIndex(0) -+2 >Emitted(27, 20) Source(47, 13) + SourceIndex(0) -+3 >Emitted(27, 21) Source(47, 14) + SourceIndex(0) -+4 >Emitted(27, 27) Source(47, 55) + SourceIndex(0) -+5 >Emitted(27, 29) Source(47, 57) + SourceIndex(0) -+6 >Emitted(27, 31) Source(47, 59) + SourceIndex(0) -+7 >Emitted(27, 35) Source(47, 63) + SourceIndex(0) -+8 >Emitted(27, 39) Source(47, 67) + SourceIndex(0) -+9 >Emitted(27, 41) Source(47, 69) + SourceIndex(0) -+10>Emitted(27, 42) Source(47, 70) + SourceIndex(0) ++1->Emitted(29, 17) Source(47, 10) + SourceIndex(0) ++2 >Emitted(29, 20) Source(47, 13) + SourceIndex(0) ++3 >Emitted(29, 21) Source(47, 14) + SourceIndex(0) ++4 >Emitted(29, 27) Source(47, 55) + SourceIndex(0) ++5 >Emitted(29, 29) Source(47, 57) + SourceIndex(0) ++6 >Emitted(29, 31) Source(47, 59) + SourceIndex(0) ++7 >Emitted(29, 35) Source(47, 63) + SourceIndex(0) ++8 >Emitted(29, 39) Source(47, 67) + SourceIndex(0) ++9 >Emitted(29, 41) Source(47, 69) + SourceIndex(0) ++10>Emitted(29, 42) Source(47, 70) + SourceIndex(0) --- >>> return runner(this); 1 >^^^^^^^^^^^^^^^^^^^^ -@@= skipped -174, +267 lines =@@ +@@= skipped -46, +61 lines =@@ 5 > this 6 > ) 7 > ; @@ -1216,13 +1122,13 @@ -5 >Emitted(29, 39) Source(47, 88) + SourceIndex(0) -6 >Emitted(29, 40) Source(47, 89) + SourceIndex(0) -7 >Emitted(29, 41) Source(47, 90) + SourceIndex(0) -+1 >Emitted(28, 21) Source(47, 70) + SourceIndex(0) -+2 >Emitted(28, 28) Source(47, 77) + SourceIndex(0) -+3 >Emitted(28, 34) Source(47, 83) + SourceIndex(0) -+4 >Emitted(28, 35) Source(47, 84) + SourceIndex(0) -+5 >Emitted(28, 39) Source(47, 88) + SourceIndex(0) -+6 >Emitted(28, 40) Source(47, 89) + SourceIndex(0) -+7 >Emitted(28, 41) Source(47, 90) + SourceIndex(0) ++1 >Emitted(30, 21) Source(47, 70) + SourceIndex(0) ++2 >Emitted(30, 28) Source(47, 77) + SourceIndex(0) ++3 >Emitted(30, 34) Source(47, 83) + SourceIndex(0) ++4 >Emitted(30, 35) Source(47, 84) + SourceIndex(0) ++5 >Emitted(30, 39) Source(47, 88) + SourceIndex(0) ++6 >Emitted(30, 40) Source(47, 89) + SourceIndex(0) ++7 >Emitted(30, 41) Source(47, 90) + SourceIndex(0) --- >>> } } 1 >^^^^^^^^^^^^^^^^ @@ -1239,10 +1145,10 @@ -2 >Emitted(30, 18) Source(47, 91) + SourceIndex(0) -3 >Emitted(30, 19) Source(47, 91) + SourceIndex(0) -4 >Emitted(30, 20) Source(47, 92) + SourceIndex(0) -+1 >Emitted(29, 17) Source(47, 90) + SourceIndex(0) -+2 >Emitted(29, 18) Source(47, 91) + SourceIndex(0) -+3 >Emitted(29, 19) Source(47, 91) + SourceIndex(0) -+4 >Emitted(29, 20) Source(47, 92) + SourceIndex(0) ++1 >Emitted(31, 17) Source(47, 90) + SourceIndex(0) ++2 >Emitted(31, 18) Source(47, 91) + SourceIndex(0) ++3 >Emitted(31, 19) Source(47, 91) + SourceIndex(0) ++4 >Emitted(31, 20) Source(47, 92) + SourceIndex(0) +--- +>>> domNode = null; +1->^^^^^^^^^^^^^^^^ @@ -1258,11 +1164,11 @@ +3 > :any = +4 > null +5 > ; -+1->Emitted(30, 17) Source(49, 11) + SourceIndex(0) -+2 >Emitted(30, 24) Source(49, 18) + SourceIndex(0) -+3 >Emitted(30, 27) Source(49, 25) + SourceIndex(0) -+4 >Emitted(30, 31) Source(49, 29) + SourceIndex(0) -+5 >Emitted(30, 32) Source(49, 30) + SourceIndex(0) ++1->Emitted(32, 17) Source(49, 11) + SourceIndex(0) ++2 >Emitted(32, 24) Source(49, 18) + SourceIndex(0) ++3 >Emitted(32, 27) Source(49, 25) + SourceIndex(0) ++4 >Emitted(32, 31) Source(49, 29) + SourceIndex(0) ++5 >Emitted(32, 32) Source(49, 30) + SourceIndex(0) --- >>> constructor(codeThing) { 1->^^^^^^^^^^^^^^^^ @@ -1277,11 +1183,14 @@ > 2 > constructor(private 3 > codeThing: Sample.Thing.ICodeThing +-1->Emitted(31, 17) Source(50, 3) + SourceIndex(0) +-2 >Emitted(31, 29) Source(50, 23) + SourceIndex(0) +-3 >Emitted(31, 38) Source(50, 57) + SourceIndex(0) +4 > ) - 1->Emitted(31, 17) Source(50, 3) + SourceIndex(0) - 2 >Emitted(31, 29) Source(50, 23) + SourceIndex(0) - 3 >Emitted(31, 38) Source(50, 57) + SourceIndex(0) -+4 >Emitted(31, 40) Source(50, 59) + SourceIndex(0) ++1->Emitted(33, 17) Source(50, 3) + SourceIndex(0) ++2 >Emitted(33, 29) Source(50, 23) + SourceIndex(0) ++3 >Emitted(33, 38) Source(50, 57) + SourceIndex(0) ++4 >Emitted(33, 40) Source(50, 59) + SourceIndex(0) --- >>> this.codeThing = codeThing; -1->^^^^^^^^^^^^^^^^^^^^ @@ -1319,8 +1228,8 @@ -4 >Emitted(33, 40) Source(49, 29) + SourceIndex(0) -5 >Emitted(33, 41) Source(49, 30) + SourceIndex(0) +2 > codeThing -+1->Emitted(32, 38) Source(50, 23) + SourceIndex(0) -+2 >Emitted(32, 47) Source(50, 32) + SourceIndex(0) ++1->Emitted(34, 38) Source(50, 23) + SourceIndex(0) ++2 >Emitted(34, 47) Source(50, 32) + SourceIndex(0) --- >>> // scenario 1 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1333,8 +1242,8 @@ 2 > // scenario 1 -1 >Emitted(34, 21) Source(51, 7) + SourceIndex(0) -2 >Emitted(34, 34) Source(51, 20) + SourceIndex(0) -+1 >Emitted(33, 21) Source(51, 7) + SourceIndex(0) -+2 >Emitted(33, 34) Source(51, 20) + SourceIndex(0) ++1 >Emitted(35, 21) Source(51, 7) + SourceIndex(0) ++2 >Emitted(35, 34) Source(51, 20) + SourceIndex(0) --- >>> codeThing.addWidget("addWidget", this); 1->^^^^^^^^^^^^^^^^^^^^ @@ -1352,16 +1261,16 @@ -8 >Emitted(35, 58) Source(52, 44) + SourceIndex(0) -9 >Emitted(35, 59) Source(52, 45) + SourceIndex(0) -10>Emitted(35, 60) Source(52, 46) + SourceIndex(0) -+1->Emitted(34, 21) Source(52, 7) + SourceIndex(0) -+2 >Emitted(34, 30) Source(52, 16) + SourceIndex(0) -+3 >Emitted(34, 31) Source(52, 17) + SourceIndex(0) -+4 >Emitted(34, 40) Source(52, 26) + SourceIndex(0) -+5 >Emitted(34, 41) Source(52, 27) + SourceIndex(0) -+6 >Emitted(34, 52) Source(52, 38) + SourceIndex(0) -+7 >Emitted(34, 54) Source(52, 40) + SourceIndex(0) -+8 >Emitted(34, 58) Source(52, 44) + SourceIndex(0) -+9 >Emitted(34, 59) Source(52, 45) + SourceIndex(0) -+10>Emitted(34, 60) Source(52, 46) + SourceIndex(0) ++1->Emitted(36, 21) Source(52, 7) + SourceIndex(0) ++2 >Emitted(36, 30) Source(52, 16) + SourceIndex(0) ++3 >Emitted(36, 31) Source(52, 17) + SourceIndex(0) ++4 >Emitted(36, 40) Source(52, 26) + SourceIndex(0) ++5 >Emitted(36, 41) Source(52, 27) + SourceIndex(0) ++6 >Emitted(36, 52) Source(52, 38) + SourceIndex(0) ++7 >Emitted(36, 54) Source(52, 40) + SourceIndex(0) ++8 >Emitted(36, 58) Source(52, 44) + SourceIndex(0) ++9 >Emitted(36, 59) Source(52, 45) + SourceIndex(0) ++10>Emitted(36, 60) Source(52, 46) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1374,8 +1283,8 @@ -2 >Emitted(36, 18) Source(53, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(35, 17) Source(52, 46) + SourceIndex(0) -+2 >Emitted(35, 18) Source(53, 4) + SourceIndex(0) ++1 >Emitted(37, 17) Source(52, 46) + SourceIndex(0) ++2 >Emitted(37, 18) Source(53, 4) + SourceIndex(0) --- >>> getDomNode() { 1->^^^^^^^^^^^^^^^^ @@ -1390,9 +1299,9 @@ -1->Emitted(37, 17) Source(55, 10) + SourceIndex(0) -2 >Emitted(37, 27) Source(55, 20) + SourceIndex(0) +3 > () -+1->Emitted(36, 17) Source(55, 10) + SourceIndex(0) -+2 >Emitted(36, 27) Source(55, 20) + SourceIndex(0) -+3 >Emitted(36, 30) Source(55, 23) + SourceIndex(0) ++1->Emitted(38, 17) Source(55, 10) + SourceIndex(0) ++2 >Emitted(38, 27) Source(55, 20) + SourceIndex(0) ++3 >Emitted(38, 30) Source(55, 23) + SourceIndex(0) --- >>> return domNode; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1409,10 +1318,10 @@ -2 >Emitted(38, 28) Source(56, 11) + SourceIndex(0) -3 >Emitted(38, 35) Source(56, 18) + SourceIndex(0) -4 >Emitted(38, 36) Source(56, 19) + SourceIndex(0) -+1->Emitted(37, 21) Source(56, 4) + SourceIndex(0) -+2 >Emitted(37, 28) Source(56, 11) + SourceIndex(0) -+3 >Emitted(37, 35) Source(56, 18) + SourceIndex(0) -+4 >Emitted(37, 36) Source(56, 19) + SourceIndex(0) ++1->Emitted(39, 21) Source(56, 4) + SourceIndex(0) ++2 >Emitted(39, 28) Source(56, 11) + SourceIndex(0) ++3 >Emitted(39, 35) Source(56, 18) + SourceIndex(0) ++4 >Emitted(39, 36) Source(56, 19) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1425,8 +1334,8 @@ -2 >Emitted(39, 18) Source(57, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(38, 17) Source(56, 19) + SourceIndex(0) -+2 >Emitted(38, 18) Source(57, 4) + SourceIndex(0) ++1 >Emitted(40, 17) Source(56, 19) + SourceIndex(0) ++2 >Emitted(40, 18) Source(57, 4) + SourceIndex(0) --- >>> destroy() { 1->^^^^^^^^^^^^^^^^ @@ -1439,9 +1348,9 @@ -1->Emitted(40, 17) Source(59, 10) + SourceIndex(0) -2 >Emitted(40, 24) Source(59, 17) + SourceIndex(0) +3 > () -+1->Emitted(39, 17) Source(59, 10) + SourceIndex(0) -+2 >Emitted(39, 24) Source(59, 17) + SourceIndex(0) -+3 >Emitted(39, 27) Source(59, 20) + SourceIndex(0) ++1->Emitted(41, 17) Source(59, 10) + SourceIndex(0) ++2 >Emitted(41, 24) Source(59, 17) + SourceIndex(0) ++3 >Emitted(41, 27) Source(59, 20) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1456,8 +1365,8 @@ +2 > + > + > } -+1 >Emitted(40, 17) Source(59, 21) + SourceIndex(0) -+2 >Emitted(40, 18) Source(61, 4) + SourceIndex(0) ++1 >Emitted(42, 17) Source(59, 21) + SourceIndex(0) ++2 >Emitted(42, 18) Source(61, 4) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^ @@ -1466,7 +1375,7 @@ > > } -1 >Emitted(42, 14) Source(63, 3) + SourceIndex(0) -+1 >Emitted(41, 14) Source(63, 3) + SourceIndex(0) ++1 >Emitted(43, 14) Source(63, 3) + SourceIndex(0) --- >>> Widgets.FindWidget = FindWidget; 1->^^^^^^^^^^^^ @@ -1498,11 +1407,11 @@ -3 >Emitted(43, 44) Source(63, 3) + SourceIndex(0) -4 >Emitted(43, 45) Source(63, 3) + SourceIndex(0) +5 > -+1->Emitted(42, 13) Source(45, 15) + SourceIndex(0) -+2 >Emitted(42, 21) Source(45, 15) + SourceIndex(0) -+3 >Emitted(42, 31) Source(45, 25) + SourceIndex(0) -+4 >Emitted(42, 44) Source(63, 3) + SourceIndex(0) -+5 >Emitted(42, 45) Source(63, 3) + SourceIndex(0) ++1->Emitted(44, 13) Source(45, 15) + SourceIndex(0) ++2 >Emitted(44, 21) Source(45, 15) + SourceIndex(0) ++3 >Emitted(44, 31) Source(45, 25) + SourceIndex(0) ++4 >Emitted(44, 44) Source(63, 3) + SourceIndex(0) ++5 >Emitted(44, 45) Source(63, 3) + SourceIndex(0) --- >>> })(Widgets = Thing.Widgets || (Thing.Widgets = {})); 1->^^^^^^^^ @@ -1554,17 +1463,17 @@ -7 >Emitted(44, 40) Source(44, 21) + SourceIndex(0) -8 >Emitted(44, 53) Source(44, 28) + SourceIndex(0) -9 >Emitted(44, 61) Source(64, 2) + SourceIndex(0) -+1->Emitted(43, 9) Source(63, 3) + SourceIndex(0) -+2 >Emitted(43, 10) Source(64, 2) + SourceIndex(0) -+3 >Emitted(43, 12) Source(44, 21) + SourceIndex(0) -+4 >Emitted(43, 19) Source(44, 28) + SourceIndex(0) -+5 >Emitted(43, 22) Source(44, 21) + SourceIndex(0) -+6 >Emitted(43, 28) Source(44, 21) + SourceIndex(0) -+7 >Emitted(43, 35) Source(44, 28) + SourceIndex(0) -+8 >Emitted(43, 40) Source(44, 21) + SourceIndex(0) -+9 >Emitted(43, 46) Source(44, 21) + SourceIndex(0) -+10>Emitted(43, 53) Source(44, 28) + SourceIndex(0) -+11>Emitted(43, 61) Source(64, 2) + SourceIndex(0) ++1->Emitted(45, 9) Source(63, 3) + SourceIndex(0) ++2 >Emitted(45, 10) Source(64, 2) + SourceIndex(0) ++3 >Emitted(45, 12) Source(44, 21) + SourceIndex(0) ++4 >Emitted(45, 19) Source(44, 28) + SourceIndex(0) ++5 >Emitted(45, 22) Source(44, 21) + SourceIndex(0) ++6 >Emitted(45, 28) Source(44, 21) + SourceIndex(0) ++7 >Emitted(45, 35) Source(44, 28) + SourceIndex(0) ++8 >Emitted(45, 40) Source(44, 21) + SourceIndex(0) ++9 >Emitted(45, 46) Source(44, 21) + SourceIndex(0) ++10>Emitted(45, 53) Source(44, 28) + SourceIndex(0) ++11>Emitted(45, 61) Source(64, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1665,18 +1574,18 @@ -7 >Emitted(45, 33) Source(44, 15) + SourceIndex(0) -8 >Emitted(45, 45) Source(44, 20) + SourceIndex(0) -9 >Emitted(45, 53) Source(64, 2) + SourceIndex(0) -+1 >Emitted(44, 5) Source(63, 3) + SourceIndex(0) -+2 >Emitted(44, 6) Source(64, 1) + SourceIndex(0) -+3 >Emitted(44, 6) Source(1, 1) + SourceIndex(0) -+4 >Emitted(44, 8) Source(44, 15) + SourceIndex(0) -+5 >Emitted(44, 13) Source(44, 20) + SourceIndex(0) -+6 >Emitted(44, 16) Source(44, 15) + SourceIndex(0) -+7 >Emitted(44, 23) Source(44, 15) + SourceIndex(0) -+8 >Emitted(44, 28) Source(44, 20) + SourceIndex(0) -+9 >Emitted(44, 33) Source(44, 15) + SourceIndex(0) -+10>Emitted(44, 40) Source(44, 15) + SourceIndex(0) -+11>Emitted(44, 45) Source(44, 20) + SourceIndex(0) -+12>Emitted(44, 53) Source(64, 2) + SourceIndex(0) ++1 >Emitted(46, 5) Source(63, 3) + SourceIndex(0) ++2 >Emitted(46, 6) Source(64, 1) + SourceIndex(0) ++3 >Emitted(46, 6) Source(1, 1) + SourceIndex(0) ++4 >Emitted(46, 8) Source(44, 15) + SourceIndex(0) ++5 >Emitted(46, 13) Source(44, 20) + SourceIndex(0) ++6 >Emitted(46, 16) Source(44, 15) + SourceIndex(0) ++7 >Emitted(46, 23) Source(44, 15) + SourceIndex(0) ++8 >Emitted(46, 28) Source(44, 20) + SourceIndex(0) ++9 >Emitted(46, 33) Source(44, 15) + SourceIndex(0) ++10>Emitted(46, 40) Source(44, 15) + SourceIndex(0) ++11>Emitted(46, 45) Source(44, 20) + SourceIndex(0) ++12>Emitted(46, 53) Source(64, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1763,14 +1672,14 @@ -5 >Emitted(46, 15) Source(44, 8) + SourceIndex(0) -6 >Emitted(46, 21) Source(44, 14) + SourceIndex(0) -7 >Emitted(46, 29) Source(64, 2) + SourceIndex(0) -+1 >Emitted(45, 1) Source(63, 3) + SourceIndex(0) -+2 >Emitted(45, 2) Source(64, 1) + SourceIndex(0) -+3 >Emitted(45, 2) Source(1, 1) + SourceIndex(0) -+4 >Emitted(45, 4) Source(44, 8) + SourceIndex(0) -+5 >Emitted(45, 10) Source(44, 14) + SourceIndex(0) -+6 >Emitted(45, 15) Source(44, 8) + SourceIndex(0) -+7 >Emitted(45, 21) Source(44, 14) + SourceIndex(0) -+8 >Emitted(45, 29) Source(64, 2) + SourceIndex(0) ++1 >Emitted(47, 1) Source(63, 3) + SourceIndex(0) ++2 >Emitted(47, 2) Source(64, 1) + SourceIndex(0) ++3 >Emitted(47, 2) Source(1, 1) + SourceIndex(0) ++4 >Emitted(47, 4) Source(44, 8) + SourceIndex(0) ++5 >Emitted(47, 10) Source(44, 14) + SourceIndex(0) ++6 >Emitted(47, 15) Source(44, 8) + SourceIndex(0) ++7 >Emitted(47, 21) Source(44, 14) + SourceIndex(0) ++8 >Emitted(47, 29) Source(64, 2) + SourceIndex(0) --- >>>class AbstractMode { 1 > @@ -1781,9 +1690,9 @@ -1 >Emitted(47, 1) Source(67, 1) + SourceIndex(0) -2 >Emitted(47, 7) Source(67, 7) + SourceIndex(0) -3 >Emitted(47, 19) Source(67, 19) + SourceIndex(0) -+1 >Emitted(46, 1) Source(67, 1) + SourceIndex(0) -+2 >Emitted(46, 7) Source(67, 7) + SourceIndex(0) -+3 >Emitted(46, 19) Source(67, 19) + SourceIndex(0) ++1 >Emitted(48, 1) Source(67, 1) + SourceIndex(0) ++2 >Emitted(48, 7) Source(67, 7) + SourceIndex(0) ++3 >Emitted(48, 19) Source(67, 19) + SourceIndex(0) --- >>> getInitialState() { return null; } 1->^^^^ @@ -1824,22 +1733,22 @@ +7 > ; +8 > +9 > } -+1->Emitted(47, 5) Source(67, 46) + SourceIndex(0) -+2 >Emitted(47, 20) Source(67, 61) + SourceIndex(0) -+3 >Emitted(47, 23) Source(67, 72) + SourceIndex(0) -+4 >Emitted(47, 25) Source(67, 74) + SourceIndex(0) -+5 >Emitted(47, 32) Source(67, 81) + SourceIndex(0) -+6 >Emitted(47, 36) Source(67, 85) + SourceIndex(0) -+7 >Emitted(47, 37) Source(67, 86) + SourceIndex(0) -+8 >Emitted(47, 38) Source(67, 86) + SourceIndex(0) -+9 >Emitted(47, 39) Source(67, 87) + SourceIndex(0) ++1->Emitted(49, 5) Source(67, 46) + SourceIndex(0) ++2 >Emitted(49, 20) Source(67, 61) + SourceIndex(0) ++3 >Emitted(49, 23) Source(67, 72) + SourceIndex(0) ++4 >Emitted(49, 25) Source(67, 74) + SourceIndex(0) ++5 >Emitted(49, 32) Source(67, 81) + SourceIndex(0) ++6 >Emitted(49, 36) Source(67, 85) + SourceIndex(0) ++7 >Emitted(49, 37) Source(67, 86) + SourceIndex(0) ++8 >Emitted(49, 38) Source(67, 86) + SourceIndex(0) ++9 >Emitted(49, 39) Source(67, 87) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(49, 2) Source(67, 89) + SourceIndex(0) -+1 >Emitted(48, 2) Source(67, 89) + SourceIndex(0) ++1 >Emitted(50, 2) Source(67, 89) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -1857,10 +1766,10 @@ -2 >Emitted(50, 12) Source(76, 8) + SourceIndex(0) -3 >Emitted(50, 18) Source(76, 14) + SourceIndex(0) +4 > -+1->Emitted(49, 1) Source(76, 1) + SourceIndex(0) -+2 >Emitted(49, 12) Source(76, 8) + SourceIndex(0) -+3 >Emitted(49, 18) Source(76, 14) + SourceIndex(0) -+4 >Emitted(49, 20) Source(6, 1) + SourceIndex(0) ++1->Emitted(51, 1) Source(76, 1) + SourceIndex(0) ++2 >Emitted(51, 12) Source(76, 8) + SourceIndex(0) ++3 >Emitted(51, 18) Source(76, 14) + SourceIndex(0) ++4 >Emitted(51, 20) Source(6, 1) + SourceIndex(0) --- ->>> var Thing; +>>> let Thing; @@ -1998,9 +1907,9 @@ + > + > } + > } -+1 >Emitted(50, 5) Source(76, 15) + SourceIndex(0) -+2 >Emitted(50, 9) Source(76, 15) + SourceIndex(0) -+3 >Emitted(50, 14) Source(100, 2) + SourceIndex(0) ++1 >Emitted(52, 5) Source(76, 15) + SourceIndex(0) ++2 >Emitted(52, 9) Source(76, 15) + SourceIndex(0) ++3 >Emitted(52, 14) Source(100, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -2016,10 +1925,10 @@ -2 >Emitted(52, 16) Source(76, 15) + SourceIndex(0) -3 >Emitted(52, 21) Source(76, 20) + SourceIndex(0) +4 > -+1->Emitted(51, 5) Source(76, 15) + SourceIndex(0) -+2 >Emitted(51, 16) Source(76, 15) + SourceIndex(0) -+3 >Emitted(51, 21) Source(76, 20) + SourceIndex(0) -+4 >Emitted(51, 23) Source(6, 1) + SourceIndex(0) ++1->Emitted(53, 5) Source(76, 15) + SourceIndex(0) ++2 >Emitted(53, 16) Source(76, 15) + SourceIndex(0) ++3 >Emitted(53, 21) Source(76, 20) + SourceIndex(0) ++4 >Emitted(53, 23) Source(6, 1) + SourceIndex(0) --- ->>> var Languages; +>>> let Languages; @@ -2157,9 +2066,9 @@ + > + > } + > } -+1->Emitted(52, 9) Source(76, 21) + SourceIndex(0) -+2 >Emitted(52, 13) Source(76, 21) + SourceIndex(0) -+3 >Emitted(52, 22) Source(100, 2) + SourceIndex(0) ++1->Emitted(54, 9) Source(76, 21) + SourceIndex(0) ++2 >Emitted(54, 13) Source(76, 21) + SourceIndex(0) ++3 >Emitted(54, 22) Source(100, 2) + SourceIndex(0) --- >>> (function (Languages) { 1->^^^^^^^^ @@ -2173,10 +2082,10 @@ -2 >Emitted(54, 20) Source(76, 21) + SourceIndex(0) -3 >Emitted(54, 29) Source(76, 30) + SourceIndex(0) +4 > -+1->Emitted(53, 9) Source(76, 21) + SourceIndex(0) -+2 >Emitted(53, 20) Source(76, 21) + SourceIndex(0) -+3 >Emitted(53, 29) Source(76, 30) + SourceIndex(0) -+4 >Emitted(53, 31) Source(6, 1) + SourceIndex(0) ++1->Emitted(55, 9) Source(76, 21) + SourceIndex(0) ++2 >Emitted(55, 20) Source(76, 21) + SourceIndex(0) ++3 >Emitted(55, 29) Source(76, 30) + SourceIndex(0) ++4 >Emitted(55, 31) Source(6, 1) + SourceIndex(0) --- ->>> var PlainText; +>>> let PlainText; @@ -2314,9 +2223,9 @@ + > + > } + > } -+1 >Emitted(54, 13) Source(76, 31) + SourceIndex(0) -+2 >Emitted(54, 17) Source(76, 31) + SourceIndex(0) -+3 >Emitted(54, 26) Source(100, 2) + SourceIndex(0) ++1 >Emitted(56, 13) Source(76, 31) + SourceIndex(0) ++2 >Emitted(56, 17) Source(76, 31) + SourceIndex(0) ++3 >Emitted(56, 26) Source(100, 2) + SourceIndex(0) --- >>> (function (PlainText) { 1->^^^^^^^^^^^^ @@ -2330,10 +2239,10 @@ -2 >Emitted(56, 24) Source(76, 31) + SourceIndex(0) -3 >Emitted(56, 33) Source(76, 40) + SourceIndex(0) +4 > -+1->Emitted(55, 13) Source(76, 31) + SourceIndex(0) -+2 >Emitted(55, 24) Source(76, 31) + SourceIndex(0) -+3 >Emitted(55, 33) Source(76, 40) + SourceIndex(0) -+4 >Emitted(55, 35) Source(76, 41) + SourceIndex(0) ++1->Emitted(57, 13) Source(76, 31) + SourceIndex(0) ++2 >Emitted(57, 24) Source(76, 31) + SourceIndex(0) ++3 >Emitted(57, 33) Source(76, 40) + SourceIndex(0) ++4 >Emitted(57, 35) Source(76, 41) + SourceIndex(0) --- >>> class State { 1 >^^^^^^^^^^^^^^^^ @@ -2349,9 +2258,9 @@ -1 >Emitted(57, 17) Source(78, 2) + SourceIndex(0) -2 >Emitted(57, 23) Source(78, 15) + SourceIndex(0) -3 >Emitted(57, 28) Source(78, 20) + SourceIndex(0) -+1 >Emitted(56, 17) Source(78, 2) + SourceIndex(0) -+2 >Emitted(56, 23) Source(78, 15) + SourceIndex(0) -+3 >Emitted(56, 28) Source(78, 20) + SourceIndex(0) ++1 >Emitted(58, 17) Source(78, 2) + SourceIndex(0) ++2 >Emitted(58, 23) Source(78, 15) + SourceIndex(0) ++3 >Emitted(58, 28) Source(78, 20) + SourceIndex(0) +--- +>>> mode; +1 >^^^^^^^^^^^^^^^^^^^^ @@ -2360,8 +2269,8 @@ +1 > implements IState { + > constructor(private +2 > mode -+1 >Emitted(57, 21) Source(79, 29) + SourceIndex(0) -+2 >Emitted(57, 25) Source(79, 33) + SourceIndex(0) ++1 >Emitted(59, 21) Source(79, 29) + SourceIndex(0) ++2 >Emitted(59, 25) Source(79, 33) + SourceIndex(0) --- >>> constructor(mode) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -2375,11 +2284,14 @@ +1-> 2 > constructor(private 3 > mode: IMode +-1->Emitted(58, 21) Source(79, 9) + SourceIndex(0) +-2 >Emitted(58, 33) Source(79, 29) + SourceIndex(0) +-3 >Emitted(58, 37) Source(79, 40) + SourceIndex(0) +4 > ) - 1->Emitted(58, 21) Source(79, 9) + SourceIndex(0) - 2 >Emitted(58, 33) Source(79, 29) + SourceIndex(0) - 3 >Emitted(58, 37) Source(79, 40) + SourceIndex(0) -+4 >Emitted(58, 39) Source(79, 42) + SourceIndex(0) ++1->Emitted(60, 21) Source(79, 9) + SourceIndex(0) ++2 >Emitted(60, 33) Source(79, 29) + SourceIndex(0) ++3 >Emitted(60, 37) Source(79, 40) + SourceIndex(0) ++4 >Emitted(60, 39) Source(79, 42) + SourceIndex(0) --- >>> this.mode = mode; -1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -2400,8 +2312,8 @@ -4 >Emitted(59, 41) Source(79, 33) + SourceIndex(0) -5 >Emitted(59, 42) Source(79, 40) + SourceIndex(0) +2 > mode -+1->Emitted(59, 37) Source(79, 29) + SourceIndex(0) -+2 >Emitted(59, 41) Source(79, 33) + SourceIndex(0) ++1->Emitted(61, 37) Source(79, 29) + SourceIndex(0) ++2 >Emitted(61, 41) Source(79, 33) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -2410,10 +2322,11 @@ -1 >) { -2 > } -1 >Emitted(60, 21) Source(79, 44) + SourceIndex(0) +-2 >Emitted(60, 22) Source(79, 45) + SourceIndex(0) +1 >: IMode) { +2 > } -+1 >Emitted(60, 21) Source(79, 43) + SourceIndex(0) - 2 >Emitted(60, 22) Source(79, 45) + SourceIndex(0) ++1 >Emitted(62, 21) Source(79, 43) + SourceIndex(0) ++2 >Emitted(62, 22) Source(79, 45) + SourceIndex(0) --- >>> clone() { 1->^^^^^^^^^^^^^^^^^^^^ @@ -2424,10 +2337,12 @@ 1-> > public 2 > clone +-1->Emitted(61, 21) Source(80, 10) + SourceIndex(0) +-2 >Emitted(61, 26) Source(80, 15) + SourceIndex(0) +3 > ():IState - 1->Emitted(61, 21) Source(80, 10) + SourceIndex(0) - 2 >Emitted(61, 26) Source(80, 15) + SourceIndex(0) -+3 >Emitted(61, 29) Source(80, 25) + SourceIndex(0) ++1->Emitted(63, 21) Source(80, 10) + SourceIndex(0) ++2 >Emitted(63, 26) Source(80, 15) + SourceIndex(0) ++3 >Emitted(63, 29) Source(80, 25) + SourceIndex(0) --- >>> return this; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -2439,20 +2354,32 @@ > 2 > return 3 > this -@@= skipped -238, +455 lines =@@ + 4 > ; +-1->Emitted(62, 25) Source(81, 4) + SourceIndex(0) +-2 >Emitted(62, 32) Source(81, 11) + SourceIndex(0) +-3 >Emitted(62, 36) Source(81, 15) + SourceIndex(0) +-4 >Emitted(62, 37) Source(81, 16) + SourceIndex(0) ++1->Emitted(64, 25) Source(81, 4) + SourceIndex(0) ++2 >Emitted(64, 32) Source(81, 11) + SourceIndex(0) ++3 >Emitted(64, 36) Source(81, 15) + SourceIndex(0) ++4 >Emitted(64, 37) Source(81, 16) + SourceIndex(0) + --- + >>> } + 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^-> 1 > - > -2 > } -1 >Emitted(63, 21) Source(82, 3) + SourceIndex(0) +-2 >Emitted(63, 22) Source(82, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(63, 21) Source(81, 16) + SourceIndex(0) - 2 >Emitted(63, 22) Source(82, 4) + SourceIndex(0) ++1 >Emitted(65, 21) Source(81, 16) + SourceIndex(0) ++2 >Emitted(65, 22) Source(82, 4) + SourceIndex(0) --- >>> equals(other) { -@@= skipped -10, +10 lines =@@ + 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^ 3 > ^ 4 > ^^^^^ @@ -2465,16 +2392,20 @@ 2 > equals 3 > ( 4 > other:IState +-1->Emitted(64, 21) Source(84, 10) + SourceIndex(0) +-2 >Emitted(64, 27) Source(84, 16) + SourceIndex(0) +-3 >Emitted(64, 28) Source(84, 17) + SourceIndex(0) +-4 >Emitted(64, 33) Source(84, 29) + SourceIndex(0) +5 > ):boolean - 1->Emitted(64, 21) Source(84, 10) + SourceIndex(0) - 2 >Emitted(64, 27) Source(84, 16) + SourceIndex(0) - 3 >Emitted(64, 28) Source(84, 17) + SourceIndex(0) - 4 >Emitted(64, 33) Source(84, 29) + SourceIndex(0) -+5 >Emitted(64, 35) Source(84, 39) + SourceIndex(0) ++1->Emitted(66, 21) Source(84, 10) + SourceIndex(0) ++2 >Emitted(66, 27) Source(84, 16) + SourceIndex(0) ++3 >Emitted(66, 28) Source(84, 17) + SourceIndex(0) ++4 >Emitted(66, 33) Source(84, 29) + SourceIndex(0) ++5 >Emitted(66, 35) Source(84, 39) + SourceIndex(0) --- >>> return this === other; 1->^^^^^^^^^^^^^^^^^^^^^^^^ -@@= skipped -19, +22 lines =@@ +@@= skipped -267, +487 lines =@@ 4 > ^^^^^ 5 > ^^^^^ 6 > ^ @@ -2483,17 +2414,35 @@ > 2 > return 3 > this -@@= skipped -19, +19 lines =@@ + 4 > === + 5 > other + 6 > ; +-1->Emitted(65, 25) Source(85, 4) + SourceIndex(0) +-2 >Emitted(65, 32) Source(85, 11) + SourceIndex(0) +-3 >Emitted(65, 36) Source(85, 15) + SourceIndex(0) +-4 >Emitted(65, 41) Source(85, 20) + SourceIndex(0) +-5 >Emitted(65, 46) Source(85, 25) + SourceIndex(0) +-6 >Emitted(65, 47) Source(85, 26) + SourceIndex(0) ++1->Emitted(67, 25) Source(85, 4) + SourceIndex(0) ++2 >Emitted(67, 32) Source(85, 11) + SourceIndex(0) ++3 >Emitted(67, 36) Source(85, 15) + SourceIndex(0) ++4 >Emitted(67, 41) Source(85, 20) + SourceIndex(0) ++5 >Emitted(67, 46) Source(85, 25) + SourceIndex(0) ++6 >Emitted(67, 47) Source(85, 26) + SourceIndex(0) + --- + >>> } + 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - > -2 > } -1 >Emitted(66, 21) Source(86, 3) + SourceIndex(0) +-2 >Emitted(66, 22) Source(86, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(66, 21) Source(85, 26) + SourceIndex(0) - 2 >Emitted(66, 22) Source(86, 4) + SourceIndex(0) ++1 >Emitted(68, 21) Source(85, 26) + SourceIndex(0) ++2 >Emitted(68, 22) Source(86, 4) + SourceIndex(0) --- >>> getMode() { return mode; } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2521,6 +2470,14 @@ -6 > ; -7 > -8 > } +-1->Emitted(67, 21) Source(88, 10) + SourceIndex(0) +-2 >Emitted(67, 28) Source(88, 17) + SourceIndex(0) +-3 >Emitted(67, 33) Source(88, 29) + SourceIndex(0) +-4 >Emitted(67, 40) Source(88, 36) + SourceIndex(0) +-5 >Emitted(67, 44) Source(88, 40) + SourceIndex(0) +-6 >Emitted(67, 45) Source(88, 41) + SourceIndex(0) +-7 >Emitted(67, 46) Source(88, 42) + SourceIndex(0) +-8 >Emitted(67, 47) Source(88, 43) + SourceIndex(0) +3 > (): IMode +4 > { +5 > return @@ -2528,25 +2485,23 @@ +7 > ; +8 > +9 > } - 1->Emitted(67, 21) Source(88, 10) + SourceIndex(0) - 2 >Emitted(67, 28) Source(88, 17) + SourceIndex(0) --3 >Emitted(67, 33) Source(88, 29) + SourceIndex(0) --4 >Emitted(67, 40) Source(88, 36) + SourceIndex(0) --5 >Emitted(67, 44) Source(88, 40) + SourceIndex(0) --6 >Emitted(67, 45) Source(88, 41) + SourceIndex(0) --7 >Emitted(67, 46) Source(88, 42) + SourceIndex(0) --8 >Emitted(67, 47) Source(88, 43) + SourceIndex(0) -+3 >Emitted(67, 31) Source(88, 27) + SourceIndex(0) -+4 >Emitted(67, 33) Source(88, 29) + SourceIndex(0) -+5 >Emitted(67, 40) Source(88, 36) + SourceIndex(0) -+6 >Emitted(67, 44) Source(88, 40) + SourceIndex(0) -+7 >Emitted(67, 45) Source(88, 41) + SourceIndex(0) -+8 >Emitted(67, 46) Source(88, 41) + SourceIndex(0) -+9 >Emitted(67, 47) Source(88, 43) + SourceIndex(0) ++1->Emitted(69, 21) Source(88, 10) + SourceIndex(0) ++2 >Emitted(69, 28) Source(88, 17) + SourceIndex(0) ++3 >Emitted(69, 31) Source(88, 27) + SourceIndex(0) ++4 >Emitted(69, 33) Source(88, 29) + SourceIndex(0) ++5 >Emitted(69, 40) Source(88, 36) + SourceIndex(0) ++6 >Emitted(69, 44) Source(88, 40) + SourceIndex(0) ++7 >Emitted(69, 45) Source(88, 41) + SourceIndex(0) ++8 >Emitted(69, 46) Source(88, 41) + SourceIndex(0) ++9 >Emitted(69, 47) Source(88, 43) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^ -@@= skipped -42, +45 lines =@@ + 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> + 1 > + > } +-1 >Emitted(68, 18) Source(89, 3) + SourceIndex(0) ++1 >Emitted(70, 18) Source(89, 3) + SourceIndex(0) --- >>> PlainText.State = State; 1->^^^^^^^^^^^^^^^^ @@ -2568,24 +2523,50 @@ > constructor(private mode: IMode) { } > public clone():IState { > return this; -@@= skipped -18, +20 lines =@@ +@@= skipped -79, +84 lines =@@ > > public getMode(): IMode { return mode; } > } -4 > -+5 > - 1->Emitted(69, 17) Source(78, 15) + SourceIndex(0) +-1->Emitted(69, 17) Source(78, 15) + SourceIndex(0) -2 >Emitted(69, 32) Source(78, 20) + SourceIndex(0) -3 >Emitted(69, 40) Source(89, 3) + SourceIndex(0) -4 >Emitted(69, 41) Source(89, 3) + SourceIndex(0) -+2 >Emitted(69, 27) Source(78, 15) + SourceIndex(0) -+3 >Emitted(69, 32) Source(78, 20) + SourceIndex(0) -+4 >Emitted(69, 40) Source(89, 3) + SourceIndex(0) -+5 >Emitted(69, 41) Source(89, 3) + SourceIndex(0) ++5 > ++1->Emitted(71, 17) Source(78, 15) + SourceIndex(0) ++2 >Emitted(71, 27) Source(78, 15) + SourceIndex(0) ++3 >Emitted(71, 32) Source(78, 20) + SourceIndex(0) ++4 >Emitted(71, 40) Source(89, 3) + SourceIndex(0) ++5 >Emitted(71, 41) Source(89, 3) + SourceIndex(0) --- >>> class Mode extends AbstractMode { 1->^^^^^^^^^^^^^^^^ -@@= skipped -39, +40 lines =@@ +@@= skipped -19, +20 lines =@@ + 3 > Mode + 4 > extends + 5 > AbstractMode +-1->Emitted(70, 17) Source(91, 2) + SourceIndex(0) +-2 >Emitted(70, 23) Source(91, 15) + SourceIndex(0) +-3 >Emitted(70, 27) Source(91, 20) + SourceIndex(0) +-4 >Emitted(70, 36) Source(91, 28) + SourceIndex(0) +-5 >Emitted(70, 48) Source(91, 40) + SourceIndex(0) ++1->Emitted(72, 17) Source(91, 2) + SourceIndex(0) ++2 >Emitted(72, 23) Source(91, 15) + SourceIndex(0) ++3 >Emitted(72, 27) Source(91, 20) + SourceIndex(0) ++4 >Emitted(72, 36) Source(91, 28) + SourceIndex(0) ++5 >Emitted(72, 48) Source(91, 40) + SourceIndex(0) + --- + >>> // scenario 2 + 1 >^^^^^^^^^^^^^^^^^^^^ +@@= skipped -14, +14 lines =@@ + > + > + 2 > // scenario 2 +-1 >Emitted(71, 21) Source(93, 3) + SourceIndex(0) +-2 >Emitted(71, 34) Source(93, 16) + SourceIndex(0) ++1 >Emitted(73, 21) Source(93, 3) + SourceIndex(0) ++2 >Emitted(73, 34) Source(93, 16) + SourceIndex(0) + --- >>> getInitialState() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^ @@ -2595,14 +2576,16 @@ 1-> > public 2 > getInitialState +-1->Emitted(72, 21) Source(94, 10) + SourceIndex(0) +-2 >Emitted(72, 36) Source(94, 25) + SourceIndex(0) +3 > (): IState - 1->Emitted(72, 21) Source(94, 10) + SourceIndex(0) - 2 >Emitted(72, 36) Source(94, 25) + SourceIndex(0) -+3 >Emitted(72, 39) Source(94, 36) + SourceIndex(0) ++1->Emitted(74, 21) Source(94, 10) + SourceIndex(0) ++2 >Emitted(74, 36) Source(94, 25) + SourceIndex(0) ++3 >Emitted(74, 39) Source(94, 36) + SourceIndex(0) --- >>> return new State(self); 1->^^^^^^^^^^^^^^^^^^^^^^^^ -@@= skipped -16, +19 lines =@@ +@@= skipped -22, +25 lines =@@ 6 > ^^^^ 7 > ^ 8 > ^ @@ -2611,20 +2594,48 @@ > 2 > return 3 > new -@@= skipped -22, +22 lines =@@ +@@= skipped -9, +9 lines =@@ + 6 > self + 7 > ) + 8 > ; +-1->Emitted(73, 25) Source(95, 4) + SourceIndex(0) +-2 >Emitted(73, 32) Source(95, 11) + SourceIndex(0) +-3 >Emitted(73, 36) Source(95, 15) + SourceIndex(0) +-4 >Emitted(73, 41) Source(95, 20) + SourceIndex(0) +-5 >Emitted(73, 42) Source(95, 21) + SourceIndex(0) +-6 >Emitted(73, 46) Source(95, 25) + SourceIndex(0) +-7 >Emitted(73, 47) Source(95, 26) + SourceIndex(0) +-8 >Emitted(73, 48) Source(95, 27) + SourceIndex(0) ++1->Emitted(75, 25) Source(95, 4) + SourceIndex(0) ++2 >Emitted(75, 32) Source(95, 11) + SourceIndex(0) ++3 >Emitted(75, 36) Source(95, 15) + SourceIndex(0) ++4 >Emitted(75, 41) Source(95, 20) + SourceIndex(0) ++5 >Emitted(75, 42) Source(95, 21) + SourceIndex(0) ++6 >Emitted(75, 46) Source(95, 25) + SourceIndex(0) ++7 >Emitted(75, 47) Source(95, 26) + SourceIndex(0) ++8 >Emitted(75, 48) Source(95, 27) + SourceIndex(0) + --- + >>> } 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ 1 > - > -2 > } -1 >Emitted(74, 21) Source(96, 3) + SourceIndex(0) +-2 >Emitted(74, 22) Source(96, 4) + SourceIndex(0) +2 > + > } -+1 >Emitted(74, 21) Source(95, 27) + SourceIndex(0) - 2 >Emitted(74, 22) Source(96, 4) + SourceIndex(0) ++1 >Emitted(76, 21) Source(95, 27) + SourceIndex(0) ++2 >Emitted(76, 22) Source(96, 4) + SourceIndex(0) --- >>> } -@@= skipped -16, +16 lines =@@ + 1 >^^^^^^^^^^^^^^^^^ +@@= skipped -25, +25 lines =@@ + > + > + > } +-1 >Emitted(75, 18) Source(99, 3) + SourceIndex(0) ++1 >Emitted(77, 18) Source(99, 3) + SourceIndex(0) --- >>> PlainText.Mode = Mode; 1->^^^^^^^^^^^^^^^^ @@ -2646,20 +2657,21 @@ > > // scenario 2 > public getInitialState(): IState { -@@= skipped -15, +17 lines =@@ +@@= skipped -19, +21 lines =@@ > > > } -4 > -+5 > - 1->Emitted(76, 17) Source(91, 15) + SourceIndex(0) +-1->Emitted(76, 17) Source(91, 15) + SourceIndex(0) -2 >Emitted(76, 31) Source(91, 19) + SourceIndex(0) -3 >Emitted(76, 38) Source(99, 3) + SourceIndex(0) -4 >Emitted(76, 39) Source(99, 3) + SourceIndex(0) -+2 >Emitted(76, 27) Source(91, 15) + SourceIndex(0) -+3 >Emitted(76, 31) Source(91, 19) + SourceIndex(0) -+4 >Emitted(76, 38) Source(99, 3) + SourceIndex(0) -+5 >Emitted(76, 39) Source(99, 3) + SourceIndex(0) ++5 > ++1->Emitted(78, 17) Source(91, 15) + SourceIndex(0) ++2 >Emitted(78, 27) Source(91, 15) + SourceIndex(0) ++3 >Emitted(78, 31) Source(91, 19) + SourceIndex(0) ++4 >Emitted(78, 38) Source(99, 3) + SourceIndex(0) ++5 >Emitted(78, 39) Source(99, 3) + SourceIndex(0) --- >>> })(PlainText = Languages.PlainText || (Languages.PlainText = {})); 1->^^^^^^^^^^^^ @@ -2703,21 +2715,25 @@ > } > } -1->Emitted(77, 13) Source(100, 1) + SourceIndex(0) -+1->Emitted(77, 13) Source(99, 3) + SourceIndex(0) - 2 >Emitted(77, 14) Source(100, 2) + SourceIndex(0) - 3 >Emitted(77, 16) Source(76, 31) + SourceIndex(0) - 4 >Emitted(77, 25) Source(76, 40) + SourceIndex(0) - 5 >Emitted(77, 28) Source(76, 31) + SourceIndex(0) +-2 >Emitted(77, 14) Source(100, 2) + SourceIndex(0) +-3 >Emitted(77, 16) Source(76, 31) + SourceIndex(0) +-4 >Emitted(77, 25) Source(76, 40) + SourceIndex(0) +-5 >Emitted(77, 28) Source(76, 31) + SourceIndex(0) -6 >Emitted(77, 47) Source(76, 40) + SourceIndex(0) -7 >Emitted(77, 52) Source(76, 31) + SourceIndex(0) -8 >Emitted(77, 71) Source(76, 40) + SourceIndex(0) -9 >Emitted(77, 79) Source(100, 2) + SourceIndex(0) -+6 >Emitted(77, 38) Source(76, 31) + SourceIndex(0) -+7 >Emitted(77, 47) Source(76, 40) + SourceIndex(0) -+8 >Emitted(77, 52) Source(76, 31) + SourceIndex(0) -+9 >Emitted(77, 62) Source(76, 31) + SourceIndex(0) -+10>Emitted(77, 71) Source(76, 40) + SourceIndex(0) -+11>Emitted(77, 79) Source(100, 2) + SourceIndex(0) ++1->Emitted(79, 13) Source(99, 3) + SourceIndex(0) ++2 >Emitted(79, 14) Source(100, 2) + SourceIndex(0) ++3 >Emitted(79, 16) Source(76, 31) + SourceIndex(0) ++4 >Emitted(79, 25) Source(76, 40) + SourceIndex(0) ++5 >Emitted(79, 28) Source(76, 31) + SourceIndex(0) ++6 >Emitted(79, 38) Source(76, 31) + SourceIndex(0) ++7 >Emitted(79, 47) Source(76, 40) + SourceIndex(0) ++8 >Emitted(79, 52) Source(76, 31) + SourceIndex(0) ++9 >Emitted(79, 62) Source(76, 31) + SourceIndex(0) ++10>Emitted(79, 71) Source(76, 40) + SourceIndex(0) ++11>Emitted(79, 79) Source(100, 2) + SourceIndex(0) --- >>> })(Languages = Thing.Languages || (Thing.Languages = {})); 1 >^^^^^^^^ @@ -2850,18 +2866,18 @@ -7 >Emitted(78, 44) Source(76, 21) + SourceIndex(0) -8 >Emitted(78, 59) Source(76, 30) + SourceIndex(0) -9 >Emitted(78, 67) Source(100, 2) + SourceIndex(0) -+1 >Emitted(78, 9) Source(99, 3) + SourceIndex(0) -+2 >Emitted(78, 10) Source(100, 1) + SourceIndex(0) -+3 >Emitted(78, 10) Source(1, 1) + SourceIndex(0) -+4 >Emitted(78, 12) Source(76, 21) + SourceIndex(0) -+5 >Emitted(78, 21) Source(76, 30) + SourceIndex(0) -+6 >Emitted(78, 24) Source(76, 21) + SourceIndex(0) -+7 >Emitted(78, 30) Source(76, 21) + SourceIndex(0) -+8 >Emitted(78, 39) Source(76, 30) + SourceIndex(0) -+9 >Emitted(78, 44) Source(76, 21) + SourceIndex(0) -+10>Emitted(78, 50) Source(76, 21) + SourceIndex(0) -+11>Emitted(78, 59) Source(76, 30) + SourceIndex(0) -+12>Emitted(78, 67) Source(100, 2) + SourceIndex(0) ++1 >Emitted(80, 9) Source(99, 3) + SourceIndex(0) ++2 >Emitted(80, 10) Source(100, 1) + SourceIndex(0) ++3 >Emitted(80, 10) Source(1, 1) + SourceIndex(0) ++4 >Emitted(80, 12) Source(76, 21) + SourceIndex(0) ++5 >Emitted(80, 21) Source(76, 30) + SourceIndex(0) ++6 >Emitted(80, 24) Source(76, 21) + SourceIndex(0) ++7 >Emitted(80, 30) Source(76, 21) + SourceIndex(0) ++8 >Emitted(80, 39) Source(76, 30) + SourceIndex(0) ++9 >Emitted(80, 44) Source(76, 21) + SourceIndex(0) ++10>Emitted(80, 50) Source(76, 21) + SourceIndex(0) ++11>Emitted(80, 59) Source(76, 30) + SourceIndex(0) ++12>Emitted(80, 67) Source(100, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -2994,18 +3010,18 @@ -7 >Emitted(79, 33) Source(76, 15) + SourceIndex(0) -8 >Emitted(79, 45) Source(76, 20) + SourceIndex(0) -9 >Emitted(79, 53) Source(100, 2) + SourceIndex(0) -+1 >Emitted(79, 5) Source(99, 3) + SourceIndex(0) -+2 >Emitted(79, 6) Source(100, 1) + SourceIndex(0) -+3 >Emitted(79, 6) Source(1, 1) + SourceIndex(0) -+4 >Emitted(79, 8) Source(76, 15) + SourceIndex(0) -+5 >Emitted(79, 13) Source(76, 20) + SourceIndex(0) -+6 >Emitted(79, 16) Source(76, 15) + SourceIndex(0) -+7 >Emitted(79, 23) Source(76, 15) + SourceIndex(0) -+8 >Emitted(79, 28) Source(76, 20) + SourceIndex(0) -+9 >Emitted(79, 33) Source(76, 15) + SourceIndex(0) -+10>Emitted(79, 40) Source(76, 15) + SourceIndex(0) -+11>Emitted(79, 45) Source(76, 20) + SourceIndex(0) -+12>Emitted(79, 53) Source(100, 2) + SourceIndex(0) ++1 >Emitted(81, 5) Source(99, 3) + SourceIndex(0) ++2 >Emitted(81, 6) Source(100, 1) + SourceIndex(0) ++3 >Emitted(81, 6) Source(1, 1) + SourceIndex(0) ++4 >Emitted(81, 8) Source(76, 15) + SourceIndex(0) ++5 >Emitted(81, 13) Source(76, 20) + SourceIndex(0) ++6 >Emitted(81, 16) Source(76, 15) + SourceIndex(0) ++7 >Emitted(81, 23) Source(76, 15) + SourceIndex(0) ++8 >Emitted(81, 28) Source(76, 20) + SourceIndex(0) ++9 >Emitted(81, 33) Source(76, 15) + SourceIndex(0) ++10>Emitted(81, 40) Source(76, 15) + SourceIndex(0) ++11>Emitted(81, 45) Source(76, 20) + SourceIndex(0) ++12>Emitted(81, 53) Source(100, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -3126,13 +3142,13 @@ -5 >Emitted(80, 15) Source(76, 8) + SourceIndex(0) -6 >Emitted(80, 21) Source(76, 14) + SourceIndex(0) -7 >Emitted(80, 29) Source(100, 2) + SourceIndex(0) -+1 >Emitted(80, 1) Source(99, 3) + SourceIndex(0) -+2 >Emitted(80, 2) Source(100, 1) + SourceIndex(0) -+3 >Emitted(80, 2) Source(1, 1) + SourceIndex(0) -+4 >Emitted(80, 4) Source(76, 8) + SourceIndex(0) -+5 >Emitted(80, 10) Source(76, 14) + SourceIndex(0) -+6 >Emitted(80, 15) Source(76, 8) + SourceIndex(0) -+7 >Emitted(80, 21) Source(76, 14) + SourceIndex(0) -+8 >Emitted(80, 29) Source(100, 2) + SourceIndex(0) ++1 >Emitted(82, 1) Source(99, 3) + SourceIndex(0) ++2 >Emitted(82, 2) Source(100, 1) + SourceIndex(0) ++3 >Emitted(82, 2) Source(1, 1) + SourceIndex(0) ++4 >Emitted(82, 4) Source(76, 8) + SourceIndex(0) ++5 >Emitted(82, 10) Source(76, 14) + SourceIndex(0) ++6 >Emitted(82, 15) Source(76, 8) + SourceIndex(0) ++7 >Emitted(82, 21) Source(76, 14) + SourceIndex(0) ++8 >Emitted(82, 29) Source(100, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=recursiveClassReferenceTest.js.map \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js index f8e19f6742..0ef2a76ebe 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js @@ -19,4 +19,5 @@ export type UseQueryOptions = Expand__ //// [recursiveConditionalCrash2.js] "use strict"; +// Simplified #43529 Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js.diff deleted file mode 100644 index 1f0633d43e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash2.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.recursiveConditionalCrash2.js -+++ new.recursiveConditionalCrash2.js -@@= skipped -18, +18 lines =@@ - - //// [recursiveConditionalCrash2.js] - "use strict"; --// Simplified #43529 - Object.defineProperty(exports, "__esModule", { value: true }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js index 27c6da19f7..5d726d5a72 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js @@ -151,6 +151,7 @@ let t: UseQueryOptions //// [recursiveConditionalCrash3.js] "use strict"; +// #43529 Object.defineProperty(exports, "__esModule", { value: true }); /** * These two functions work as charm, also they are superfast and as expected they don't use additional Memory diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js.diff deleted file mode 100644 index 5313135627..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalCrash3.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.recursiveConditionalCrash3.js -+++ new.recursiveConditionalCrash3.js -@@= skipped -150, +150 lines =@@ - - //// [recursiveConditionalCrash3.js] - "use strict"; --// #43529 - Object.defineProperty(exports, "__esModule", { value: true }); - /** - * These two functions work as charm, also they are superfast and as expected they don't use additional Memory \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js b/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js index 2a469765c8..2365d463b0 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js @@ -174,6 +174,7 @@ function foo2(value: T): Enumerate { //// [recursiveConditionalTypes.js] +// Awaiting promises function f11(tx, ta, ux, ua) { ta = ua; ua = ta; // Error diff --git a/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js.diff index b1aa684066..749885f54a 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveConditionalTypes.js.diff @@ -5,7 +5,6 @@ //// [recursiveConditionalTypes.js] -"use strict"; --// Awaiting promises + // Awaiting promises function f11(tx, ta, ux, ua) { - ta = ua; - ua = ta; // Error \ No newline at end of file + ta = ua; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js b/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js index 54a8290126..c3657e0cc5 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js @@ -17,6 +17,7 @@ getMaxId(nodes); //// [recursiveExcessPropertyChecks.js] +// Repro from #35804 function getMaxId(items) { } const nodes = []; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js.diff index 24b9038832..01001ef3eb 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveExcessPropertyChecks.js.diff @@ -5,7 +5,6 @@ //// [recursiveExcessPropertyChecks.js] -"use strict"; --// Repro from #35804 + // Repro from #35804 function getMaxId(items) { - } - const nodes = []; \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js b/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js index 3bd72df2bd..24b272348e 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js @@ -10,3 +10,4 @@ type Promised = PromisedTuple<[1, 2, 3]> //// [recursiveResolveTypeMembers.js] +// Repro from #25291 diff --git a/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js.diff deleted file mode 100644 index b1e2b73353..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveResolveTypeMembers.js.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.recursiveResolveTypeMembers.js -+++ new.recursiveResolveTypeMembers.js -@@= skipped -9, +9 lines =@@ - - - //// [recursiveResolveTypeMembers.js] --// Repro from #25291 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js b/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js index 241770d95d..287d40a1f9 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js @@ -17,6 +17,7 @@ function a(l: Recur[]): void { //// [recursiveReverseMappedType.js] +// Repro from #38198 function join(l) { return ['marker', ...l]; } diff --git a/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js.diff index 607b35331a..3488dfc69a 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/recursiveReverseMappedType.js.diff @@ -5,7 +5,6 @@ //// [recursiveReverseMappedType.js] -"use strict"; --// Repro from #38198 + // Repro from #38198 function join(l) { - return ['marker', ...l]; - } \ No newline at end of file + return ['marker', ...l]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js b/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js index befecc076e..c56e013c04 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js @@ -28,6 +28,7 @@ foo(gK); //// [recursiveTupleTypeInference.js] "use strict"; +// Repro from #37475 Object.defineProperty(exports, "__esModule", { value: true }); const gK = { b: ["number", "null"] }; function foo(g) { diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js.diff deleted file mode 100644 index 76a61bfca6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveTupleTypeInference.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.recursiveTupleTypeInference.js -+++ new.recursiveTupleTypeInference.js -@@= skipped -27, +27 lines =@@ - - //// [recursiveTupleTypeInference.js] - "use strict"; --// Repro from #37475 - Object.defineProperty(exports, "__esModule", { value: true }); - const gK = { b: ["number", "null"] }; - function foo(g) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js index 6373ad1317..25c7528d3c 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js @@ -18,5 +18,6 @@ var stuck: Property = p; //// [recursiveTypeComparison.js] +// Before fix this would take an exceeding long time to complete (#1170) var p; var stuck = p; diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js.diff deleted file mode 100644 index 12fc5f6a6d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.recursiveTypeComparison.js -+++ new.recursiveTypeComparison.js -@@= skipped -17, +17 lines =@@ - - - //// [recursiveTypeComparison.js] --// Before fix this would take an exceeding long time to complete (#1170) - var p; - var stuck = p; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js index 74bcbb68df..91ef344d47 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js @@ -33,4 +33,5 @@ declare module Bacon { var stuck: Bacon.Bus = new Bacon.Bus(); //// [recursiveTypeComparison2.js] +// Before fix this would cause compiler to hang (#1170) var stuck = new Bacon.Bus(); diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js.diff deleted file mode 100644 index 976958954f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeComparison2.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.recursiveTypeComparison2.js -+++ new.recursiveTypeComparison2.js -@@= skipped -32, +32 lines =@@ - var stuck: Bacon.Bus = new Bacon.Bus(); - - //// [recursiveTypeComparison2.js] --// Before fix this would cause compiler to hang (#1170) - var stuck = new Bacon.Bus(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js b/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js index d52b290cd4..47a334cdf9 100644 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js +++ b/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js @@ -40,6 +40,7 @@ export function css(styles: S, ...classNam //// [recursiveTypeRelations.js] "use strict"; +// Repro from #14896 Object.defineProperty(exports, "__esModule", { value: true }); exports.css = css; class Query { diff --git a/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js.diff b/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js.diff deleted file mode 100644 index 72cb5f8aa6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/recursiveTypeRelations.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.recursiveTypeRelations.js -+++ new.recursiveTypeRelations.js -@@= skipped -39, +39 lines =@@ - - //// [recursiveTypeRelations.js] - "use strict"; --// Repro from #14896 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.css = css; - class Query { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js b/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js index c5fd0453d8..af19e36e72 100644 --- a/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js +++ b/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js @@ -69,6 +69,7 @@ const f11 = ({ [2]: string }) => { }; function f12({ a: string = "" }: O): typeof string { return "a"; } //// [renamingDestructuredPropertyInFunctionType.js] +// GH#37454, GH#41044 // Below are OK but renaming should be removed from declaration emit function f1({ a: string }) { } const f2 = function ({ a: string }) { }; diff --git a/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js.diff b/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js.diff index b04e4ff52c..a08c1d16aa 100644 --- a/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/renamingDestructuredPropertyInFunctionType.js.diff @@ -1,14 +1,6 @@ --- old.renamingDestructuredPropertyInFunctionType.js +++ new.renamingDestructuredPropertyInFunctionType.js -@@= skipped -68, +68 lines =@@ - function f12({ a: string = "" }: O): typeof string { return "a"; } - - //// [renamingDestructuredPropertyInFunctionType.js] --// GH#37454, GH#41044 - // Below are OK but renaming should be removed from declaration emit - function f1({ a: string }) { } - const f2 = function ({ a: string }) { }; -@@= skipped -102, +101 lines =@@ +@@= skipped -170, +170 lines =@@ declare function f1({ a: string }: O): void; declare const f2: ({ a: string }: O) => void; declare const f3: ({ a: string, b, c }: O) => void; diff --git a/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js b/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js index c4e1667691..a9c85a1024 100644 --- a/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js +++ b/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js @@ -16,6 +16,7 @@ const result: number = removeF({ f: '', g: 3 }).g //// [restParameterTypeInstantiation.js] +// Repro from #33823 var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) diff --git a/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js.diff b/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js.diff index 26c08689c4..41c49e47b0 100644 --- a/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js.diff +++ b/testdata/baselines/reference/submodule/compiler/restParameterTypeInstantiation.js.diff @@ -5,7 +5,6 @@ //// [restParameterTypeInstantiation.js] -"use strict"; --// Repro from #33823 + // Repro from #33823 var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) \ No newline at end of file + var t = {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js b/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js index 5926930ecf..e95d8ac61b 100644 --- a/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js +++ b/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js @@ -8,4 +8,5 @@ conforms({ foo: (v: string) => false })({ foo: "hello" }); //// [reverseMappedContravariantInference.js] +// Repro from #21273 conforms({ foo: (v) => false })({ foo: "hello" }); diff --git a/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js.diff b/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js.diff index 1e91b9b2a8..058bb5bd55 100644 --- a/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js.diff +++ b/testdata/baselines/reference/submodule/compiler/reverseMappedContravariantInference.js.diff @@ -5,5 +5,5 @@ //// [reverseMappedContravariantInference.js] -"use strict"; --// Repro from #21273 + // Repro from #21273 conforms({ foo: (v) => false })({ foo: "hello" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js b/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js index 08a36fe515..23d5953f63 100644 --- a/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js +++ b/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js @@ -131,6 +131,7 @@ inferMappedReadonly({ //// [reverseMappedPartiallyInferableTypes.js] "use strict"; +// Repro from #30505 Object.defineProperty(exports, "__esModule", { value: true }); const r = extend({ props: { diff --git a/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js.diff b/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js.diff deleted file mode 100644 index 90fab6c9cb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/reverseMappedPartiallyInferableTypes.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.reverseMappedPartiallyInferableTypes.js -+++ new.reverseMappedPartiallyInferableTypes.js -@@= skipped -130, +130 lines =@@ - - //// [reverseMappedPartiallyInferableTypes.js] - "use strict"; --// Repro from #30505 - Object.defineProperty(exports, "__esModule", { value: true }); - const r = extend({ - props: { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js b/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js index 761ac88c07..94a4999a00 100644 --- a/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js +++ b/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js @@ -17,7 +17,7 @@ use(x); //// [f.js] #!/usr/bin/env node "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const test_1 = require("test"); use(test_1.x); diff --git a/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js.diff b/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js.diff index 09c897fae0..0f54cd3448 100644 --- a/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js.diff +++ b/testdata/baselines/reference/submodule/compiler/shebangBeforeReferences.js.diff @@ -1,12 +1,9 @@ --- old.shebangBeforeReferences.js +++ new.shebangBeforeReferences.js -@@= skipped -16, +16 lines =@@ - //// [f.js] - #!/usr/bin/env node +@@= skipped -18, +18 lines =@@ "use strict"; --/// + /// Object.defineProperty(exports, "__esModule", { value: true }); -var test_1 = require("test"); -+/// +const test_1 = require("test"); use(test_1.x); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js b/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js index e7f5287854..eaeee061fc 100644 --- a/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js +++ b/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js @@ -29,6 +29,7 @@ breaks.foo() //// [silentNeverPropagation.js] +// Repro from #45041 const breaks = convert(createModule({ a: 12 }, { foo() { return true; } })); breaks.state.a; breaks.state.z; diff --git a/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js.diff b/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js.diff index 24c4d9e259..b208c9fe5a 100644 --- a/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js.diff +++ b/testdata/baselines/reference/submodule/compiler/silentNeverPropagation.js.diff @@ -5,7 +5,6 @@ //// [silentNeverPropagation.js] -"use strict"; --// Repro from #45041 + // Repro from #45041 const breaks = convert(createModule({ a: 12 }, { foo() { return true; } })); - breaks.state.a; - breaks.state.z; \ No newline at end of file + breaks.state.a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js b/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js index 40ae9e3318..232227568e 100644 --- a/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js +++ b/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js @@ -40,5 +40,10 @@ export default spected; //// [specedNoStackBlown.js] "use strict"; +// Type definitions for spected 0.7 +// Project: https://github.com/25th-floor/spected +// Definitions by: Benjamin Makus +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 Object.defineProperty(exports, "__esModule", { value: true }); exports.default = spected; diff --git a/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js.diff b/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js.diff deleted file mode 100644 index 569a89b30b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/specedNoStackBlown.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.specedNoStackBlown.js -+++ new.specedNoStackBlown.js -@@= skipped -39, +39 lines =@@ - - //// [specedNoStackBlown.js] - "use strict"; --// Type definitions for spected 0.7 --// Project: https://github.com/25th-floor/spected --// Definitions by: Benjamin Makus --// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped --// TypeScript Version: 2.8 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = spected; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js b/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js index f06fdff189..1daf03a3f2 100644 --- a/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js +++ b/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js @@ -18,6 +18,7 @@ a.other.length; // Error expected here //// [specialIntersectionsInMappedTypes.js] +// Repro from #50683 const a = { left: "align-left", center: "align-center", diff --git a/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js.diff b/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js.diff index 4dfbc08838..779e459e55 100644 --- a/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/specialIntersectionsInMappedTypes.js.diff @@ -5,7 +5,6 @@ //// [specialIntersectionsInMappedTypes.js] -"use strict"; --// Repro from #50683 + // Repro from #50683 const a = { - left: "align-left", - center: "align-center", \ No newline at end of file + left: "align-left", \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js index fe87157055..0955ee08dc 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js @@ -22,6 +22,7 @@ function test2(item: T): T { //// [spreadExpressionContextualType.js] +// Repro from #43966 var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js.diff b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js.diff index 7e538b55b2..c9b02c1ef9 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualType.js.diff @@ -5,7 +5,6 @@ //// [spreadExpressionContextualType.js] -"use strict"; --// Repro from #43966 + // Repro from #43966 var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { \ No newline at end of file + __assign = Object.assign || function(t) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js index 132ae598ca..58620e049f 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js @@ -36,11 +36,11 @@ getStuff().exportedDirectly; //// [spreadExpressionContextualTypeWithNamespace_0.js] "use strict"; +// Repro from #44179 with some modification Object.defineProperty(exports, "__esModule", { value: true }); exports.obj = exports.klass = void 0; exports.func = func; exports.exportedDirectly = exportedDirectly; -// Repro from #44179 with some modification function func() { } class klass { } diff --git a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff index e22623ce91..c8f0893e6d 100644 --- a/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff +++ b/testdata/baselines/reference/submodule/compiler/spreadExpressionContextualTypeWithNamespace.js.diff @@ -1,19 +1,6 @@ --- old.spreadExpressionContextualTypeWithNamespace.js +++ new.spreadExpressionContextualTypeWithNamespace.js -@@= skipped -35, +35 lines =@@ - - //// [spreadExpressionContextualTypeWithNamespace_0.js] - "use strict"; --// Repro from #44179 with some modification - Object.defineProperty(exports, "__esModule", { value: true }); - exports.obj = exports.klass = void 0; - exports.func = func; - exports.exportedDirectly = exportedDirectly; -+// Repro from #44179 with some modification - function func() { } - class klass { - } -@@= skipped -26, +26 lines =@@ +@@= skipped -61, +61 lines =@@ return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js b/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js index ce5b102681..faed3c3d7f 100644 --- a/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js +++ b/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js @@ -8,6 +8,7 @@ type T2 = [(string | undefined)?] extends [string?] ? true : false; // false //// [strictOptionalProperties2.js] +// Repro from #44567 //// [strictOptionalProperties2.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js.diff b/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js.diff index 9a3f80a1e6..1f43d8fe3b 100644 --- a/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/strictOptionalProperties2.js.diff @@ -5,7 +5,5 @@ //// [strictOptionalProperties2.js] -"use strict"; --// Repro from #44567 + // Repro from #44567 - - //// [strictOptionalProperties2.d.ts] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js b/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js index 3176fd3168..65ea4cd3b8 100644 --- a/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js +++ b/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js @@ -234,6 +234,7 @@ const f = (value: Union) => { //// [strictSubtypeAndNarrowing.js] +// Check that `any` is a strict supertype of `unknown` const a11 = [x11, x12]; const a12 = [x12, x11]; const a21 = [x22, x21]; diff --git a/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js.diff b/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js.diff index 963b0d7755..a357bd50ad 100644 --- a/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js.diff +++ b/testdata/baselines/reference/submodule/compiler/strictSubtypeAndNarrowing.js.diff @@ -5,7 +5,6 @@ //// [strictSubtypeAndNarrowing.js] -"use strict"; --// Check that `any` is a strict supertype of `unknown` + // Check that `any` is a strict supertype of `unknown` const a11 = [x11, x12]; - const a12 = [x12, x11]; - const a21 = [x22, x21]; \ No newline at end of file + const a12 = [x12, x11]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js b/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js index c97b325e5c..716b8ff27c 100644 --- a/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js +++ b/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js @@ -22,6 +22,7 @@ const withoutBoundaryResult = withoutBoundary({ //// [substitutionTypesInIndexedAccessTypes.js] +// Repro from #31086 const boundaryResult = withBoundary({ select: true, }); diff --git a/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js.diff b/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js.diff index a53e59395f..012b6eca39 100644 --- a/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/substitutionTypesInIndexedAccessTypes.js.diff @@ -5,7 +5,6 @@ //// [substitutionTypesInIndexedAccessTypes.js] -"use strict"; --// Repro from #31086 + // Repro from #31086 const boundaryResult = withBoundary({ - select: true, - }); \ No newline at end of file + select: true, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js index d0753d67d3..8d1a2f2949 100644 --- a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js +++ b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js @@ -10,5 +10,6 @@ let result: number = foo`${x}`; //// [taggedTemplateStringWithSymbolExpression01.js] +// taggedTemplateStringWithSymbolExpression01.ts let x; let result = foo `${x}`; diff --git a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js.diff b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js.diff deleted file mode 100644 index 56b8221ef6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringWithSymbolExpression01.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.taggedTemplateStringWithSymbolExpression01.js -+++ new.taggedTemplateStringWithSymbolExpression01.js -@@= skipped -9, +9 lines =@@ - - - //// [taggedTemplateStringWithSymbolExpression01.js] --// taggedTemplateStringWithSymbolExpression01.ts - let x; - let result = foo `${x}`; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js index a920b38ccd..bd943b8645 100644 --- a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js +++ b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js @@ -13,6 +13,7 @@ f({ x: (() => 1)(), ...{ y: 1 } })``; //// [taggedTemplateStringsWithCurriedFunction.js] +// Originated from #38558 var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -24,7 +25,6 @@ var __assign = (this && this.__assign) || function () { }; return __assign.apply(this, arguments); }; -// Originated from #38558 const f = _ => (..._) => ""; f(__assign({ x: 0 })) ``; f(__assign({ x: 0 })) `x`; diff --git a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js.diff b/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js.diff deleted file mode 100644 index b32a21039c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/taggedTemplateStringsWithCurriedFunction.js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.taggedTemplateStringsWithCurriedFunction.js -+++ new.taggedTemplateStringsWithCurriedFunction.js -@@= skipped -12, +12 lines =@@ - - - //// [taggedTemplateStringsWithCurriedFunction.js] --// Originated from #38558 - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -12, +11 lines =@@ - }; - return __assign.apply(this, arguments); - }; -+// Originated from #38558 - const f = _ => (..._) => ""; - f(__assign({ x: 0 })) ``; - f(__assign({ x: 0 })) `x`; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js index 6d734ae2ed..7c518b3b9d 100644 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js +++ b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js @@ -15,6 +15,6 @@ const a: GlobalThing = { a: 0 }; //// [usage.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const a = { a: 0 }; diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js.diff b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js.diff deleted file mode 100644 index 050a3b1053..0000000000 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node16).js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.tripleSlashTypesReferenceWithMissingExports(module=node16).js -+++ new.tripleSlashTypesReferenceWithMissingExports(module=node16).js -@@= skipped -14, +14 lines =@@ - - //// [usage.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); -+/// - const a = { a: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js index 6d734ae2ed..7c518b3b9d 100644 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js +++ b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js @@ -15,6 +15,6 @@ const a: GlobalThing = { a: 0 }; //// [usage.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const a = { a: 0 }; diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js.diff b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js.diff deleted file mode 100644 index 18ceeaf53b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=node20).js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.tripleSlashTypesReferenceWithMissingExports(module=node20).js -+++ new.tripleSlashTypesReferenceWithMissingExports(module=node20).js -@@= skipped -14, +14 lines =@@ - - //// [usage.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); -+/// - const a = { a: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js index 6d734ae2ed..7c518b3b9d 100644 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js +++ b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js @@ -15,6 +15,6 @@ const a: GlobalThing = { a: 0 }; //// [usage.js] "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); /// +Object.defineProperty(exports, "__esModule", { value: true }); const a = { a: 0 }; diff --git a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js.diff b/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js.diff deleted file mode 100644 index 02147f9a60..0000000000 --- a/testdata/baselines/reference/submodule/compiler/tripleSlashTypesReferenceWithMissingExports(module=nodenext).js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.tripleSlashTypesReferenceWithMissingExports(module=nodenext).js -+++ new.tripleSlashTypesReferenceWithMissingExports(module=nodenext).js -@@= skipped -14, +14 lines =@@ - - //// [usage.js] - "use strict"; --/// - Object.defineProperty(exports, "__esModule", { value: true }); -+/// - const a = { a: 0 }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js index 37e3dbd216..86f61ddfe3 100644 --- a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js +++ b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js @@ -23,6 +23,7 @@ function test

(wrappedProps: P) { //// [tsxNotUsingApparentTypeOfSFC.js] "use strict"; +/// var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -38,7 +39,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -/// const react_1 = __importDefault(require("react")); function test(wrappedProps) { let MySFC = function (props) { diff --git a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff index adaeb0ae16..46768e7061 100644 --- a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff +++ b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff @@ -1,19 +1,10 @@ --- old.tsxNotUsingApparentTypeOfSFC.js +++ new.tsxNotUsingApparentTypeOfSFC.js -@@= skipped -22, +22 lines =@@ - - //// [tsxNotUsingApparentTypeOfSFC.js] - "use strict"; --/// - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { -@@= skipped -16, +15 lines =@@ +@@= skipped -38, +38 lines =@@ return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -var react_1 = __importDefault(require("react")); -+/// +const react_1 = __importDefault(require("react")); function test(wrappedProps) { let MySFC = function (props) { diff --git a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js b/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js index 6a231bf839..238668914a 100644 --- a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js +++ b/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js @@ -20,6 +20,7 @@ const CustomButton: React.SFC = props =>