diff --git a/bin/tsc.js b/bin/tsc.js index 2bde9314b4d..ba5dd4f1d17 100644 --- a/bin/tsc.js +++ b/bin/tsc.js @@ -24992,7 +24992,7 @@ var ts; ts.emitTime = 0; ts.ioReadTime = 0; ts.ioWriteTime = 0; - ts.version = "1.5.0"; + ts.version = "1.5.2"; var carriageReturnLineFeed = "\r\n"; var lineFeed = "\n"; function findConfigFile(searchPath) { diff --git a/bin/tsserver.js b/bin/tsserver.js index 1707ef70411..2e4f2c16c75 100644 --- a/bin/tsserver.js +++ b/bin/tsserver.js @@ -25376,7 +25376,7 @@ var ts; ts.emitTime = 0; ts.ioReadTime = 0; ts.ioWriteTime = 0; - ts.version = "1.5.0"; + ts.version = "1.5.2"; var carriageReturnLineFeed = "\r\n"; var lineFeed = "\n"; function findConfigFile(searchPath) { @@ -31202,8 +31202,9 @@ var ts; })(); ts.CancellationTokenObject = CancellationTokenObject; var HostCache = (function () { - function HostCache(host) { + function HostCache(host, getCanonicalFileName) { this.host = host; + this.getCanonicalFileName = getCanonicalFileName; this.fileNameToEntry = {}; var rootFileNames = host.getScriptFileNames(); for (var _i = 0; _i < rootFileNames.length; _i++) { @@ -31215,6 +31216,9 @@ var ts; HostCache.prototype.compilationSettings = function () { return this._compilationSettings; }; + HostCache.prototype.normalizeFileName = function (fileName) { + return this.getCanonicalFileName(ts.normalizeSlashes(fileName)); + }; HostCache.prototype.createEntry = function (fileName) { var entry; var scriptSnapshot = this.host.getScriptSnapshot(fileName); @@ -31225,13 +31229,13 @@ var ts; scriptSnapshot: scriptSnapshot }; } - return this.fileNameToEntry[ts.normalizeSlashes(fileName)] = entry; + return this.fileNameToEntry[this.normalizeFileName(fileName)] = entry; }; HostCache.prototype.getEntry = function (fileName) { - return ts.lookUp(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.lookUp(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.contains = function (fileName) { - return ts.hasProperty(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.hasProperty(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.getOrCreateEntry = function (fileName) { if (this.contains(fileName)) { @@ -31243,8 +31247,10 @@ var ts; var _this = this; var fileNames = []; ts.forEachKey(this.fileNameToEntry, function (key) { - if (ts.hasProperty(_this.fileNameToEntry, key) && _this.fileNameToEntry[key]) - fileNames.push(key); + var entry = _this.getEntry(key); + if (entry) { + fileNames.push(entry.hostFileName); + } }); return fileNames; }; @@ -31774,7 +31780,7 @@ var ts; return ruleProvider; } function synchronizeHostData() { - var hostCache = new HostCache(host); + var hostCache = new HostCache(host, getCanonicalFileName); if (programUpToDate()) { return; } @@ -31784,7 +31790,7 @@ var ts; var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, { getSourceFile: getOrCreateSourceFile, getCancellationToken: function () { return cancellationToken; }, - getCanonicalFileName: function (fileName) { return useCaseSensitivefileNames ? fileName : fileName.toLowerCase(); }, + getCanonicalFileName: getCanonicalFileName, useCaseSensitiveFileNames: function () { return useCaseSensitivefileNames; }, getNewLine: function () { return host.getNewLine ? host.getNewLine() : "\r\n"; }, getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); }, diff --git a/bin/typescript.js b/bin/typescript.js index ba375bc4096..4a17fb94c2c 100644 --- a/bin/typescript.js +++ b/bin/typescript.js @@ -29571,7 +29571,7 @@ var ts; /* @internal */ ts.ioReadTime = 0; /* @internal */ ts.ioWriteTime = 0; /** The version of the TypeScript compiler release */ - ts.version = "1.5.0"; + ts.version = "1.5.2"; var carriageReturnLineFeed = "\r\n"; var lineFeed = "\n"; function findConfigFile(searchPath) { @@ -36487,8 +36487,9 @@ var ts; // at each language service public entry point, since we don't know when // set of scripts handled by the host changes. var HostCache = (function () { - function HostCache(host) { + function HostCache(host, getCanonicalFileName) { this.host = host; + this.getCanonicalFileName = getCanonicalFileName; // script id => script index this.fileNameToEntry = {}; // Initialize the list with the root file names @@ -36503,6 +36504,9 @@ var ts; HostCache.prototype.compilationSettings = function () { return this._compilationSettings; }; + HostCache.prototype.normalizeFileName = function (fileName) { + return this.getCanonicalFileName(ts.normalizeSlashes(fileName)); + }; HostCache.prototype.createEntry = function (fileName) { var entry; var scriptSnapshot = this.host.getScriptSnapshot(fileName); @@ -36513,13 +36517,13 @@ var ts; scriptSnapshot: scriptSnapshot }; } - return this.fileNameToEntry[ts.normalizeSlashes(fileName)] = entry; + return this.fileNameToEntry[this.normalizeFileName(fileName)] = entry; }; HostCache.prototype.getEntry = function (fileName) { - return ts.lookUp(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.lookUp(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.contains = function (fileName) { - return ts.hasProperty(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.hasProperty(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.getOrCreateEntry = function (fileName) { if (this.contains(fileName)) { @@ -36531,8 +36535,10 @@ var ts; var _this = this; var fileNames = []; ts.forEachKey(this.fileNameToEntry, function (key) { - if (ts.hasProperty(_this.fileNameToEntry, key) && _this.fileNameToEntry[key]) - fileNames.push(key); + var entry = _this.getEntry(key); + if (entry) { + fileNames.push(entry.hostFileName); + } }); return fileNames; }; @@ -37151,7 +37157,7 @@ var ts; } function synchronizeHostData() { // Get a fresh cache of the host information - var hostCache = new HostCache(host); + var hostCache = new HostCache(host, getCanonicalFileName); // If the program is already up-to-date, we can reuse it if (programUpToDate()) { return; @@ -37168,7 +37174,7 @@ var ts; var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, { getSourceFile: getOrCreateSourceFile, getCancellationToken: function () { return cancellationToken; }, - getCanonicalFileName: function (fileName) { return useCaseSensitivefileNames ? fileName : fileName.toLowerCase(); }, + getCanonicalFileName: getCanonicalFileName, useCaseSensitiveFileNames: function () { return useCaseSensitivefileNames; }, getNewLine: function () { return host.getNewLine ? host.getNewLine() : "\r\n"; }, getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); }, diff --git a/bin/typescriptServices.js b/bin/typescriptServices.js index ba375bc4096..4a17fb94c2c 100644 --- a/bin/typescriptServices.js +++ b/bin/typescriptServices.js @@ -29571,7 +29571,7 @@ var ts; /* @internal */ ts.ioReadTime = 0; /* @internal */ ts.ioWriteTime = 0; /** The version of the TypeScript compiler release */ - ts.version = "1.5.0"; + ts.version = "1.5.2"; var carriageReturnLineFeed = "\r\n"; var lineFeed = "\n"; function findConfigFile(searchPath) { @@ -36487,8 +36487,9 @@ var ts; // at each language service public entry point, since we don't know when // set of scripts handled by the host changes. var HostCache = (function () { - function HostCache(host) { + function HostCache(host, getCanonicalFileName) { this.host = host; + this.getCanonicalFileName = getCanonicalFileName; // script id => script index this.fileNameToEntry = {}; // Initialize the list with the root file names @@ -36503,6 +36504,9 @@ var ts; HostCache.prototype.compilationSettings = function () { return this._compilationSettings; }; + HostCache.prototype.normalizeFileName = function (fileName) { + return this.getCanonicalFileName(ts.normalizeSlashes(fileName)); + }; HostCache.prototype.createEntry = function (fileName) { var entry; var scriptSnapshot = this.host.getScriptSnapshot(fileName); @@ -36513,13 +36517,13 @@ var ts; scriptSnapshot: scriptSnapshot }; } - return this.fileNameToEntry[ts.normalizeSlashes(fileName)] = entry; + return this.fileNameToEntry[this.normalizeFileName(fileName)] = entry; }; HostCache.prototype.getEntry = function (fileName) { - return ts.lookUp(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.lookUp(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.contains = function (fileName) { - return ts.hasProperty(this.fileNameToEntry, ts.normalizeSlashes(fileName)); + return ts.hasProperty(this.fileNameToEntry, this.normalizeFileName(fileName)); }; HostCache.prototype.getOrCreateEntry = function (fileName) { if (this.contains(fileName)) { @@ -36531,8 +36535,10 @@ var ts; var _this = this; var fileNames = []; ts.forEachKey(this.fileNameToEntry, function (key) { - if (ts.hasProperty(_this.fileNameToEntry, key) && _this.fileNameToEntry[key]) - fileNames.push(key); + var entry = _this.getEntry(key); + if (entry) { + fileNames.push(entry.hostFileName); + } }); return fileNames; }; @@ -37151,7 +37157,7 @@ var ts; } function synchronizeHostData() { // Get a fresh cache of the host information - var hostCache = new HostCache(host); + var hostCache = new HostCache(host, getCanonicalFileName); // If the program is already up-to-date, we can reuse it if (programUpToDate()) { return; @@ -37168,7 +37174,7 @@ var ts; var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, { getSourceFile: getOrCreateSourceFile, getCancellationToken: function () { return cancellationToken; }, - getCanonicalFileName: function (fileName) { return useCaseSensitivefileNames ? fileName : fileName.toLowerCase(); }, + getCanonicalFileName: getCanonicalFileName, useCaseSensitiveFileNames: function () { return useCaseSensitivefileNames; }, getNewLine: function () { return host.getNewLine ? host.getNewLine() : "\r\n"; }, getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); }, diff --git a/package.json b/package.json index c33f2a93ec1..88d5db51f72 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "http://typescriptlang.org/", - "version": "1.5.0", + "version": "1.5.2", "licenses": [ { "type": "Apache License 2.0", diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 8536f24a7e2..3201434da58 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3566,7 +3566,19 @@ module ts { return false; } + // Since removeSubtypes checks the subtype relation, and the subtype relation on a union + // may attempt to reduce a union, it is possible that removeSubtypes could be called + // recursively on the same set of types. The removeSubtypesStack is used to track which + // sets of types are currently undergoing subtype reduction. + let removeSubtypesStack: string[] = []; function removeSubtypes(types: Type[]) { + let typeListId = getTypeListId(types); + if (removeSubtypesStack.lastIndexOf(typeListId) >= 0) { + return; + } + + removeSubtypesStack.push(typeListId); + let i = types.length; while (i > 0) { i--; @@ -3574,6 +3586,8 @@ module ts { types.splice(i, 1); } } + + removeSubtypesStack.pop(); } function containsAnyType(types: Type[]) { diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 59b6fcd7eb6..c9d23ec5cee 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -139,7 +139,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) { let exportEquals: ExportAssignment; let hasExportStars: boolean; - /** write emitted output to disk*/ + /** Write emitted output to disk */ let writeEmittedFiles = writeJavaScriptFile; let detachedCommentsInfo: { nodePos: number; detachedCommentEndPos: number }[]; @@ -3059,13 +3059,15 @@ var __param = (this && this.__param) || function (paramIndex, decorator) { } function emitVariableStatement(node: VariableStatement) { - let startIsEmitted = true; - if (!(node.flags & NodeFlags.Export)) { - startIsEmitted = tryEmitStartOfVariableDeclarationList(node.declarationList); + let startIsEmitted = false; + if (node.flags & NodeFlags.Export) { + if (isES6ExportedDeclaration(node)) { + // Exported ES6 module member + write("export "); + startIsEmitted = tryEmitStartOfVariableDeclarationList(node.declarationList); + } } - else if (isES6ExportedDeclaration(node)) { - // Exported ES6 module member - write("export "); + else { startIsEmitted = tryEmitStartOfVariableDeclarationList(node.declarationList); } if (startIsEmitted) { diff --git a/src/compiler/program.ts b/src/compiler/program.ts index f5bf44ec809..38634f1dea6 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -8,7 +8,7 @@ module ts { /* @internal */ export let ioWriteTime = 0; /** The version of the TypeScript compiler release */ - export const version = "1.5.0"; + export const version = "1.5.2"; const carriageReturnLineFeed = "\r\n"; const lineFeed = "\n"; diff --git a/src/services/services.ts b/src/services/services.ts index 4374f3f3ea8..9fb495ee931 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -3039,46 +3039,47 @@ module ts { let containingNodeKind = previousToken.parent.kind; switch (previousToken.kind) { case SyntaxKind.CommaToken: - return containingNodeKind === SyntaxKind.CallExpression // func( a, | - || containingNodeKind === SyntaxKind.Constructor // constructor( a, | public, protected, private keywords are allowed here, so show completion - || containingNodeKind === SyntaxKind.NewExpression // new C(a, | - || containingNodeKind === SyntaxKind.ArrayLiteralExpression // [a, | - || containingNodeKind === SyntaxKind.BinaryExpression; // let x = (a, | + return containingNodeKind === SyntaxKind.CallExpression // func( a, | + || containingNodeKind === SyntaxKind.Constructor // constructor( a, | public, protected, private keywords are allowed here, so show completion + || containingNodeKind === SyntaxKind.NewExpression // new C(a, | + || containingNodeKind === SyntaxKind.ArrayLiteralExpression // [a, | + || containingNodeKind === SyntaxKind.BinaryExpression // let x = (a, | + || containingNodeKind === SyntaxKind.FunctionType; // var x: (s: string, list| - case SyntaxKind.OpenParenToken: return containingNodeKind === SyntaxKind.CallExpression // func( | || containingNodeKind === SyntaxKind.Constructor // constructor( | || containingNodeKind === SyntaxKind.NewExpression // new C(a| - || containingNodeKind === SyntaxKind.ParenthesizedExpression; // let x = (a| + || containingNodeKind === SyntaxKind.ParenthesizedExpression // let x = (a| + || containingNodeKind === SyntaxKind.ParenthesizedType; // function F(pred: (a| this can become an arrow function, where 'a' is the argument case SyntaxKind.OpenBracketToken: - return containingNodeKind === SyntaxKind.ArrayLiteralExpression; // [ | + return containingNodeKind === SyntaxKind.ArrayLiteralExpression; // [ | - case SyntaxKind.ModuleKeyword: // module | - case SyntaxKind.NamespaceKeyword: // namespace | + case SyntaxKind.ModuleKeyword: // module | + case SyntaxKind.NamespaceKeyword: // namespace | return true; case SyntaxKind.DotToken: - return containingNodeKind === SyntaxKind.ModuleDeclaration; // module A.| + return containingNodeKind === SyntaxKind.ModuleDeclaration; // module A.| case SyntaxKind.OpenBraceToken: - return containingNodeKind === SyntaxKind.ClassDeclaration; // class A{ | + return containingNodeKind === SyntaxKind.ClassDeclaration; // class A{ | case SyntaxKind.EqualsToken: - return containingNodeKind === SyntaxKind.VariableDeclaration // let x = a| - || containingNodeKind === SyntaxKind.BinaryExpression; // x = a| + return containingNodeKind === SyntaxKind.VariableDeclaration // let x = a| + || containingNodeKind === SyntaxKind.BinaryExpression; // x = a| case SyntaxKind.TemplateHead: - return containingNodeKind === SyntaxKind.TemplateExpression; // `aa ${| + return containingNodeKind === SyntaxKind.TemplateExpression; // `aa ${| case SyntaxKind.TemplateMiddle: - return containingNodeKind === SyntaxKind.TemplateSpan; // `aa ${10} dd ${| + return containingNodeKind === SyntaxKind.TemplateSpan; // `aa ${10} dd ${| case SyntaxKind.PublicKeyword: case SyntaxKind.PrivateKeyword: case SyntaxKind.ProtectedKeyword: - return containingNodeKind === SyntaxKind.PropertyDeclaration; // class A{ public | + return containingNodeKind === SyntaxKind.PropertyDeclaration; // class A{ public | } // Previous token may have been a keyword that was converted to an identifier. @@ -3157,40 +3158,43 @@ module ts { return containingNodeKind === SyntaxKind.VariableDeclaration || containingNodeKind === SyntaxKind.VariableDeclarationList || containingNodeKind === SyntaxKind.VariableStatement || - containingNodeKind === SyntaxKind.EnumDeclaration || // enum a { foo, | + containingNodeKind === SyntaxKind.EnumDeclaration || // enum a { foo, | isFunction(containingNodeKind) || - containingNodeKind === SyntaxKind.ClassDeclaration || // class A ^^^^ 4 > ^^ 5 > ^ +6 > ^^^^^^^^^^^^^^^-> 1-> 2 >module 3 > C5T5 @@ -1120,19 +1121,6 @@ sourceFile:contextualTyping.ts 4 >Emitted(51, 18) Source(66, 13) + SourceIndex(0) 5 >Emitted(51, 19) Source(66, 14) + SourceIndex(0) --- ->>> C5T5.foo; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > - > export var -2 > foo: (i: number, s: string) => string -3 > ; -1 >Emitted(52, 5) Source(67, 16) + SourceIndex(0) name (C5T5) -2 >Emitted(52, 13) Source(67, 53) + SourceIndex(0) name (C5T5) -3 >Emitted(52, 14) Source(67, 54) + SourceIndex(0) name (C5T5) ---- >>> C5T5.foo = function (i, s) { 1->^^^^ 2 > ^^^^^^^^ @@ -1142,6 +1130,7 @@ sourceFile:contextualTyping.ts 6 > ^^ 7 > ^ 1-> + > export var foo: (i: number, s: string) => string; > 2 > foo 3 > = @@ -1149,13 +1138,13 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(53, 5) Source(68, 5) + SourceIndex(0) name (C5T5) -2 >Emitted(53, 13) Source(68, 8) + SourceIndex(0) name (C5T5) -3 >Emitted(53, 16) Source(68, 11) + SourceIndex(0) name (C5T5) -4 >Emitted(53, 26) Source(68, 20) + SourceIndex(0) name (C5T5) -5 >Emitted(53, 27) Source(68, 21) + SourceIndex(0) name (C5T5) -6 >Emitted(53, 29) Source(68, 23) + SourceIndex(0) name (C5T5) -7 >Emitted(53, 30) Source(68, 24) + SourceIndex(0) name (C5T5) +1->Emitted(52, 5) Source(68, 5) + SourceIndex(0) name (C5T5) +2 >Emitted(52, 13) Source(68, 8) + SourceIndex(0) name (C5T5) +3 >Emitted(52, 16) Source(68, 11) + SourceIndex(0) name (C5T5) +4 >Emitted(52, 26) Source(68, 20) + SourceIndex(0) name (C5T5) +5 >Emitted(52, 27) Source(68, 21) + SourceIndex(0) name (C5T5) +6 >Emitted(52, 29) Source(68, 23) + SourceIndex(0) name (C5T5) +7 >Emitted(52, 30) Source(68, 24) + SourceIndex(0) name (C5T5) --- >>> return s; 1 >^^^^^^^^ @@ -1169,11 +1158,11 @@ sourceFile:contextualTyping.ts 3 > 4 > s 5 > ; -1 >Emitted(54, 9) Source(69, 9) + SourceIndex(0) -2 >Emitted(54, 15) Source(69, 15) + SourceIndex(0) -3 >Emitted(54, 16) Source(69, 16) + SourceIndex(0) -4 >Emitted(54, 17) Source(69, 17) + SourceIndex(0) -5 >Emitted(54, 18) Source(69, 18) + SourceIndex(0) +1 >Emitted(53, 9) Source(69, 9) + SourceIndex(0) +2 >Emitted(53, 15) Source(69, 15) + SourceIndex(0) +3 >Emitted(53, 16) Source(69, 16) + SourceIndex(0) +4 >Emitted(53, 17) Source(69, 17) + SourceIndex(0) +5 >Emitted(53, 18) Source(69, 18) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -1184,9 +1173,9 @@ sourceFile:contextualTyping.ts > 2 > } 3 > -1 >Emitted(55, 5) Source(70, 5) + SourceIndex(0) -2 >Emitted(55, 6) Source(70, 6) + SourceIndex(0) -3 >Emitted(55, 7) Source(70, 6) + SourceIndex(0) name (C5T5) +1 >Emitted(54, 5) Source(70, 5) + SourceIndex(0) +2 >Emitted(54, 6) Source(70, 6) + SourceIndex(0) +3 >Emitted(54, 7) Source(70, 6) + SourceIndex(0) name (C5T5) --- >>>})(C5T5 || (C5T5 = {})); 1-> @@ -1210,13 +1199,13 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(56, 1) Source(71, 1) + SourceIndex(0) name (C5T5) -2 >Emitted(56, 2) Source(71, 2) + SourceIndex(0) name (C5T5) -3 >Emitted(56, 4) Source(66, 8) + SourceIndex(0) -4 >Emitted(56, 8) Source(66, 12) + SourceIndex(0) -5 >Emitted(56, 13) Source(66, 8) + SourceIndex(0) -6 >Emitted(56, 17) Source(66, 12) + SourceIndex(0) -7 >Emitted(56, 25) Source(71, 2) + SourceIndex(0) +1->Emitted(55, 1) Source(71, 1) + SourceIndex(0) name (C5T5) +2 >Emitted(55, 2) Source(71, 2) + SourceIndex(0) name (C5T5) +3 >Emitted(55, 4) Source(66, 8) + SourceIndex(0) +4 >Emitted(55, 8) Source(66, 12) + SourceIndex(0) +5 >Emitted(55, 13) Source(66, 8) + SourceIndex(0) +6 >Emitted(55, 17) Source(66, 12) + SourceIndex(0) +7 >Emitted(55, 25) Source(71, 2) + SourceIndex(0) --- >>>// CONTEXT: Variable assignment 1-> @@ -1228,9 +1217,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Variable assignment -1->Emitted(57, 1) Source(74, 1) + SourceIndex(0) -2 >Emitted(57, 1) Source(73, 1) + SourceIndex(0) -3 >Emitted(57, 32) Source(73, 32) + SourceIndex(0) +1->Emitted(56, 1) Source(74, 1) + SourceIndex(0) +2 >Emitted(56, 1) Source(73, 1) + SourceIndex(0) +3 >Emitted(56, 32) Source(73, 32) + SourceIndex(0) --- >>>var c6t5; 1 >^^^^ @@ -1241,9 +1230,9 @@ sourceFile:contextualTyping.ts >var 2 > c6t5: (n: number) => IFoo 3 > ; -1 >Emitted(58, 5) Source(74, 5) + SourceIndex(0) -2 >Emitted(58, 9) Source(74, 30) + SourceIndex(0) -3 >Emitted(58, 10) Source(74, 31) + SourceIndex(0) +1 >Emitted(57, 5) Source(74, 5) + SourceIndex(0) +2 >Emitted(57, 9) Source(74, 30) + SourceIndex(0) +3 >Emitted(57, 10) Source(74, 31) + SourceIndex(0) --- >>>c6t5 = function (n) { return ({}); }; 1-> @@ -1277,21 +1266,21 @@ sourceFile:contextualTyping.ts 13> 14> } 15> ; -1->Emitted(59, 1) Source(75, 1) + SourceIndex(0) -2 >Emitted(59, 5) Source(75, 5) + SourceIndex(0) -3 >Emitted(59, 8) Source(75, 29) + SourceIndex(0) -4 >Emitted(59, 18) Source(75, 38) + SourceIndex(0) -5 >Emitted(59, 19) Source(75, 39) + SourceIndex(0) -6 >Emitted(59, 23) Source(75, 43) + SourceIndex(0) -7 >Emitted(59, 29) Source(75, 49) + SourceIndex(0) -8 >Emitted(59, 30) Source(75, 56) + SourceIndex(0) -9 >Emitted(59, 31) Source(75, 57) + SourceIndex(0) -10>Emitted(59, 33) Source(75, 59) + SourceIndex(0) -11>Emitted(59, 34) Source(75, 60) + SourceIndex(0) -12>Emitted(59, 35) Source(75, 60) + SourceIndex(0) -13>Emitted(59, 36) Source(75, 61) + SourceIndex(0) -14>Emitted(59, 37) Source(75, 62) + SourceIndex(0) -15>Emitted(59, 38) Source(75, 63) + SourceIndex(0) +1->Emitted(58, 1) Source(75, 1) + SourceIndex(0) +2 >Emitted(58, 5) Source(75, 5) + SourceIndex(0) +3 >Emitted(58, 8) Source(75, 29) + SourceIndex(0) +4 >Emitted(58, 18) Source(75, 38) + SourceIndex(0) +5 >Emitted(58, 19) Source(75, 39) + SourceIndex(0) +6 >Emitted(58, 23) Source(75, 43) + SourceIndex(0) +7 >Emitted(58, 29) Source(75, 49) + SourceIndex(0) +8 >Emitted(58, 30) Source(75, 56) + SourceIndex(0) +9 >Emitted(58, 31) Source(75, 57) + SourceIndex(0) +10>Emitted(58, 33) Source(75, 59) + SourceIndex(0) +11>Emitted(58, 34) Source(75, 60) + SourceIndex(0) +12>Emitted(58, 35) Source(75, 60) + SourceIndex(0) +13>Emitted(58, 36) Source(75, 61) + SourceIndex(0) +14>Emitted(58, 37) Source(75, 62) + SourceIndex(0) +15>Emitted(58, 38) Source(75, 63) + SourceIndex(0) --- >>>// CONTEXT: Array index assignment 1 > @@ -1303,9 +1292,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Array index assignment -1 >Emitted(60, 1) Source(78, 1) + SourceIndex(0) -2 >Emitted(60, 1) Source(77, 1) + SourceIndex(0) -3 >Emitted(60, 35) Source(77, 35) + SourceIndex(0) +1 >Emitted(59, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(59, 1) Source(77, 1) + SourceIndex(0) +3 >Emitted(59, 35) Source(77, 35) + SourceIndex(0) --- >>>var c7t2; 1 >^^^^ @@ -1316,9 +1305,9 @@ sourceFile:contextualTyping.ts >var 2 > c7t2: IFoo[] 3 > ; -1 >Emitted(61, 5) Source(78, 5) + SourceIndex(0) -2 >Emitted(61, 9) Source(78, 17) + SourceIndex(0) -3 >Emitted(61, 10) Source(78, 18) + SourceIndex(0) +1 >Emitted(60, 5) Source(78, 5) + SourceIndex(0) +2 >Emitted(60, 9) Source(78, 17) + SourceIndex(0) +3 >Emitted(60, 10) Source(78, 18) + SourceIndex(0) --- >>>c7t2[0] = ({ n: 1 }); 1-> @@ -1350,20 +1339,20 @@ sourceFile:contextualTyping.ts 12> } 13> ) 14> ; -1->Emitted(62, 1) Source(79, 1) + SourceIndex(0) -2 >Emitted(62, 5) Source(79, 5) + SourceIndex(0) -3 >Emitted(62, 6) Source(79, 6) + SourceIndex(0) -4 >Emitted(62, 7) Source(79, 7) + SourceIndex(0) -5 >Emitted(62, 8) Source(79, 8) + SourceIndex(0) -6 >Emitted(62, 11) Source(79, 17) + SourceIndex(0) -7 >Emitted(62, 12) Source(79, 18) + SourceIndex(0) -8 >Emitted(62, 14) Source(79, 19) + SourceIndex(0) -9 >Emitted(62, 15) Source(79, 20) + SourceIndex(0) -10>Emitted(62, 17) Source(79, 22) + SourceIndex(0) -11>Emitted(62, 18) Source(79, 23) + SourceIndex(0) -12>Emitted(62, 20) Source(79, 24) + SourceIndex(0) -13>Emitted(62, 21) Source(79, 25) + SourceIndex(0) -14>Emitted(62, 22) Source(79, 26) + SourceIndex(0) +1->Emitted(61, 1) Source(79, 1) + SourceIndex(0) +2 >Emitted(61, 5) Source(79, 5) + SourceIndex(0) +3 >Emitted(61, 6) Source(79, 6) + SourceIndex(0) +4 >Emitted(61, 7) Source(79, 7) + SourceIndex(0) +5 >Emitted(61, 8) Source(79, 8) + SourceIndex(0) +6 >Emitted(61, 11) Source(79, 17) + SourceIndex(0) +7 >Emitted(61, 12) Source(79, 18) + SourceIndex(0) +8 >Emitted(61, 14) Source(79, 19) + SourceIndex(0) +9 >Emitted(61, 15) Source(79, 20) + SourceIndex(0) +10>Emitted(61, 17) Source(79, 22) + SourceIndex(0) +11>Emitted(61, 18) Source(79, 23) + SourceIndex(0) +12>Emitted(61, 20) Source(79, 24) + SourceIndex(0) +13>Emitted(61, 21) Source(79, 25) + SourceIndex(0) +14>Emitted(61, 22) Source(79, 26) + SourceIndex(0) --- >>>var objc8 = ({}); 1 > @@ -1424,14 +1413,14 @@ sourceFile:contextualTyping.ts 6 > {} 7 > ) 8 > ; -1 >Emitted(63, 1) Source(102, 1) + SourceIndex(0) -2 >Emitted(63, 5) Source(102, 5) + SourceIndex(0) -3 >Emitted(63, 10) Source(102, 10) + SourceIndex(0) -4 >Emitted(63, 13) Source(120, 19) + SourceIndex(0) -5 >Emitted(63, 14) Source(120, 20) + SourceIndex(0) -6 >Emitted(63, 16) Source(120, 22) + SourceIndex(0) -7 >Emitted(63, 17) Source(120, 23) + SourceIndex(0) -8 >Emitted(63, 18) Source(120, 24) + SourceIndex(0) +1 >Emitted(62, 1) Source(102, 1) + SourceIndex(0) +2 >Emitted(62, 5) Source(102, 5) + SourceIndex(0) +3 >Emitted(62, 10) Source(102, 10) + SourceIndex(0) +4 >Emitted(62, 13) Source(120, 19) + SourceIndex(0) +5 >Emitted(62, 14) Source(120, 20) + SourceIndex(0) +6 >Emitted(62, 16) Source(120, 22) + SourceIndex(0) +7 >Emitted(62, 17) Source(120, 23) + SourceIndex(0) +8 >Emitted(62, 18) Source(120, 24) + SourceIndex(0) --- >>>objc8.t1 = (function (s) { return s; }); 1-> @@ -1470,23 +1459,23 @@ sourceFile:contextualTyping.ts 15> } 16> ) 17> ; -1->Emitted(64, 1) Source(122, 1) + SourceIndex(0) -2 >Emitted(64, 6) Source(122, 6) + SourceIndex(0) -3 >Emitted(64, 7) Source(122, 7) + SourceIndex(0) -4 >Emitted(64, 9) Source(122, 9) + SourceIndex(0) -5 >Emitted(64, 12) Source(122, 12) + SourceIndex(0) -6 >Emitted(64, 13) Source(122, 13) + SourceIndex(0) -7 >Emitted(64, 23) Source(122, 22) + SourceIndex(0) -8 >Emitted(64, 24) Source(122, 23) + SourceIndex(0) -9 >Emitted(64, 28) Source(122, 27) + SourceIndex(0) -10>Emitted(64, 34) Source(122, 33) + SourceIndex(0) -11>Emitted(64, 35) Source(122, 34) + SourceIndex(0) -12>Emitted(64, 36) Source(122, 35) + SourceIndex(0) -13>Emitted(64, 37) Source(122, 35) + SourceIndex(0) -14>Emitted(64, 38) Source(122, 36) + SourceIndex(0) -15>Emitted(64, 39) Source(122, 37) + SourceIndex(0) -16>Emitted(64, 40) Source(122, 38) + SourceIndex(0) -17>Emitted(64, 41) Source(122, 39) + SourceIndex(0) +1->Emitted(63, 1) Source(122, 1) + SourceIndex(0) +2 >Emitted(63, 6) Source(122, 6) + SourceIndex(0) +3 >Emitted(63, 7) Source(122, 7) + SourceIndex(0) +4 >Emitted(63, 9) Source(122, 9) + SourceIndex(0) +5 >Emitted(63, 12) Source(122, 12) + SourceIndex(0) +6 >Emitted(63, 13) Source(122, 13) + SourceIndex(0) +7 >Emitted(63, 23) Source(122, 22) + SourceIndex(0) +8 >Emitted(63, 24) Source(122, 23) + SourceIndex(0) +9 >Emitted(63, 28) Source(122, 27) + SourceIndex(0) +10>Emitted(63, 34) Source(122, 33) + SourceIndex(0) +11>Emitted(63, 35) Source(122, 34) + SourceIndex(0) +12>Emitted(63, 36) Source(122, 35) + SourceIndex(0) +13>Emitted(63, 37) Source(122, 35) + SourceIndex(0) +14>Emitted(63, 38) Source(122, 36) + SourceIndex(0) +15>Emitted(63, 39) Source(122, 37) + SourceIndex(0) +16>Emitted(63, 40) Source(122, 38) + SourceIndex(0) +17>Emitted(63, 41) Source(122, 39) + SourceIndex(0) --- >>>objc8.t2 = ({ 1 > @@ -1502,12 +1491,12 @@ sourceFile:contextualTyping.ts 4 > t2 5 > = 6 > ( -1 >Emitted(65, 1) Source(123, 1) + SourceIndex(0) -2 >Emitted(65, 6) Source(123, 6) + SourceIndex(0) -3 >Emitted(65, 7) Source(123, 7) + SourceIndex(0) -4 >Emitted(65, 9) Source(123, 9) + SourceIndex(0) -5 >Emitted(65, 12) Source(123, 18) + SourceIndex(0) -6 >Emitted(65, 13) Source(123, 19) + SourceIndex(0) +1 >Emitted(64, 1) Source(123, 1) + SourceIndex(0) +2 >Emitted(64, 6) Source(123, 6) + SourceIndex(0) +3 >Emitted(64, 7) Source(123, 7) + SourceIndex(0) +4 >Emitted(64, 9) Source(123, 9) + SourceIndex(0) +5 >Emitted(64, 12) Source(123, 18) + SourceIndex(0) +6 >Emitted(64, 13) Source(123, 19) + SourceIndex(0) --- >>> n: 1 1 >^^^^ @@ -1519,10 +1508,10 @@ sourceFile:contextualTyping.ts 2 > n 3 > : 4 > 1 -1 >Emitted(66, 5) Source(124, 5) + SourceIndex(0) -2 >Emitted(66, 6) Source(124, 6) + SourceIndex(0) -3 >Emitted(66, 8) Source(124, 8) + SourceIndex(0) -4 >Emitted(66, 9) Source(124, 9) + SourceIndex(0) +1 >Emitted(65, 5) Source(124, 5) + SourceIndex(0) +2 >Emitted(65, 6) Source(124, 6) + SourceIndex(0) +3 >Emitted(65, 8) Source(124, 8) + SourceIndex(0) +4 >Emitted(65, 9) Source(124, 9) + SourceIndex(0) --- >>>}); 1 >^ @@ -1533,9 +1522,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > ; -1 >Emitted(67, 2) Source(125, 2) + SourceIndex(0) -2 >Emitted(67, 3) Source(125, 3) + SourceIndex(0) -3 >Emitted(67, 4) Source(125, 4) + SourceIndex(0) +1 >Emitted(66, 2) Source(125, 2) + SourceIndex(0) +2 >Emitted(66, 3) Source(125, 3) + SourceIndex(0) +3 >Emitted(66, 4) Source(125, 4) + SourceIndex(0) --- >>>objc8.t3 = []; 1-> @@ -1554,13 +1543,13 @@ sourceFile:contextualTyping.ts 5 > = 6 > [] 7 > ; -1->Emitted(68, 1) Source(126, 1) + SourceIndex(0) -2 >Emitted(68, 6) Source(126, 6) + SourceIndex(0) -3 >Emitted(68, 7) Source(126, 7) + SourceIndex(0) -4 >Emitted(68, 9) Source(126, 9) + SourceIndex(0) -5 >Emitted(68, 12) Source(126, 12) + SourceIndex(0) -6 >Emitted(68, 14) Source(126, 14) + SourceIndex(0) -7 >Emitted(68, 15) Source(126, 15) + SourceIndex(0) +1->Emitted(67, 1) Source(126, 1) + SourceIndex(0) +2 >Emitted(67, 6) Source(126, 6) + SourceIndex(0) +3 >Emitted(67, 7) Source(126, 7) + SourceIndex(0) +4 >Emitted(67, 9) Source(126, 9) + SourceIndex(0) +5 >Emitted(67, 12) Source(126, 12) + SourceIndex(0) +6 >Emitted(67, 14) Source(126, 14) + SourceIndex(0) +7 >Emitted(67, 15) Source(126, 15) + SourceIndex(0) --- >>>objc8.t4 = function () { return ({}); }; 1-> @@ -1595,21 +1584,21 @@ sourceFile:contextualTyping.ts 13> 14> } 15> ; -1->Emitted(69, 1) Source(127, 1) + SourceIndex(0) -2 >Emitted(69, 6) Source(127, 6) + SourceIndex(0) -3 >Emitted(69, 7) Source(127, 7) + SourceIndex(0) -4 >Emitted(69, 9) Source(127, 9) + SourceIndex(0) -5 >Emitted(69, 12) Source(127, 12) + SourceIndex(0) -6 >Emitted(69, 26) Source(127, 25) + SourceIndex(0) -7 >Emitted(69, 32) Source(127, 31) + SourceIndex(0) -8 >Emitted(69, 33) Source(127, 38) + SourceIndex(0) -9 >Emitted(69, 34) Source(127, 39) + SourceIndex(0) -10>Emitted(69, 36) Source(127, 41) + SourceIndex(0) -11>Emitted(69, 37) Source(127, 42) + SourceIndex(0) -12>Emitted(69, 38) Source(127, 42) + SourceIndex(0) -13>Emitted(69, 39) Source(127, 43) + SourceIndex(0) -14>Emitted(69, 40) Source(127, 44) + SourceIndex(0) -15>Emitted(69, 41) Source(127, 45) + SourceIndex(0) +1->Emitted(68, 1) Source(127, 1) + SourceIndex(0) +2 >Emitted(68, 6) Source(127, 6) + SourceIndex(0) +3 >Emitted(68, 7) Source(127, 7) + SourceIndex(0) +4 >Emitted(68, 9) Source(127, 9) + SourceIndex(0) +5 >Emitted(68, 12) Source(127, 12) + SourceIndex(0) +6 >Emitted(68, 26) Source(127, 25) + SourceIndex(0) +7 >Emitted(68, 32) Source(127, 31) + SourceIndex(0) +8 >Emitted(68, 33) Source(127, 38) + SourceIndex(0) +9 >Emitted(68, 34) Source(127, 39) + SourceIndex(0) +10>Emitted(68, 36) Source(127, 41) + SourceIndex(0) +11>Emitted(68, 37) Source(127, 42) + SourceIndex(0) +12>Emitted(68, 38) Source(127, 42) + SourceIndex(0) +13>Emitted(68, 39) Source(127, 43) + SourceIndex(0) +14>Emitted(68, 40) Source(127, 44) + SourceIndex(0) +15>Emitted(68, 41) Source(127, 45) + SourceIndex(0) --- >>>objc8.t5 = function (n) { return ({}); }; 1-> @@ -1648,23 +1637,23 @@ sourceFile:contextualTyping.ts 15> 16> } 17> ; -1->Emitted(70, 1) Source(128, 1) + SourceIndex(0) -2 >Emitted(70, 6) Source(128, 6) + SourceIndex(0) -3 >Emitted(70, 7) Source(128, 7) + SourceIndex(0) -4 >Emitted(70, 9) Source(128, 9) + SourceIndex(0) -5 >Emitted(70, 12) Source(128, 12) + SourceIndex(0) -6 >Emitted(70, 22) Source(128, 21) + SourceIndex(0) -7 >Emitted(70, 23) Source(128, 22) + SourceIndex(0) -8 >Emitted(70, 27) Source(128, 26) + SourceIndex(0) -9 >Emitted(70, 33) Source(128, 32) + SourceIndex(0) -10>Emitted(70, 34) Source(128, 39) + SourceIndex(0) -11>Emitted(70, 35) Source(128, 40) + SourceIndex(0) -12>Emitted(70, 37) Source(128, 42) + SourceIndex(0) -13>Emitted(70, 38) Source(128, 43) + SourceIndex(0) -14>Emitted(70, 39) Source(128, 43) + SourceIndex(0) -15>Emitted(70, 40) Source(128, 44) + SourceIndex(0) -16>Emitted(70, 41) Source(128, 45) + SourceIndex(0) -17>Emitted(70, 42) Source(128, 46) + SourceIndex(0) +1->Emitted(69, 1) Source(128, 1) + SourceIndex(0) +2 >Emitted(69, 6) Source(128, 6) + SourceIndex(0) +3 >Emitted(69, 7) Source(128, 7) + SourceIndex(0) +4 >Emitted(69, 9) Source(128, 9) + SourceIndex(0) +5 >Emitted(69, 12) Source(128, 12) + SourceIndex(0) +6 >Emitted(69, 22) Source(128, 21) + SourceIndex(0) +7 >Emitted(69, 23) Source(128, 22) + SourceIndex(0) +8 >Emitted(69, 27) Source(128, 26) + SourceIndex(0) +9 >Emitted(69, 33) Source(128, 32) + SourceIndex(0) +10>Emitted(69, 34) Source(128, 39) + SourceIndex(0) +11>Emitted(69, 35) Source(128, 40) + SourceIndex(0) +12>Emitted(69, 37) Source(128, 42) + SourceIndex(0) +13>Emitted(69, 38) Source(128, 43) + SourceIndex(0) +14>Emitted(69, 39) Source(128, 43) + SourceIndex(0) +15>Emitted(69, 40) Source(128, 44) + SourceIndex(0) +16>Emitted(69, 41) Source(128, 45) + SourceIndex(0) +17>Emitted(69, 42) Source(128, 46) + SourceIndex(0) --- >>>objc8.t6 = function (n, s) { return ({}); }; 1-> @@ -1706,25 +1695,25 @@ sourceFile:contextualTyping.ts 17> 18> } 19> ; -1->Emitted(71, 1) Source(129, 1) + SourceIndex(0) -2 >Emitted(71, 6) Source(129, 6) + SourceIndex(0) -3 >Emitted(71, 7) Source(129, 7) + SourceIndex(0) -4 >Emitted(71, 9) Source(129, 9) + SourceIndex(0) -5 >Emitted(71, 12) Source(129, 12) + SourceIndex(0) -6 >Emitted(71, 22) Source(129, 21) + SourceIndex(0) -7 >Emitted(71, 23) Source(129, 22) + SourceIndex(0) -8 >Emitted(71, 25) Source(129, 24) + SourceIndex(0) -9 >Emitted(71, 26) Source(129, 25) + SourceIndex(0) -10>Emitted(71, 30) Source(129, 29) + SourceIndex(0) -11>Emitted(71, 36) Source(129, 35) + SourceIndex(0) -12>Emitted(71, 37) Source(129, 42) + SourceIndex(0) -13>Emitted(71, 38) Source(129, 43) + SourceIndex(0) -14>Emitted(71, 40) Source(129, 45) + SourceIndex(0) -15>Emitted(71, 41) Source(129, 46) + SourceIndex(0) -16>Emitted(71, 42) Source(129, 46) + SourceIndex(0) -17>Emitted(71, 43) Source(129, 47) + SourceIndex(0) -18>Emitted(71, 44) Source(129, 48) + SourceIndex(0) -19>Emitted(71, 45) Source(129, 49) + SourceIndex(0) +1->Emitted(70, 1) Source(129, 1) + SourceIndex(0) +2 >Emitted(70, 6) Source(129, 6) + SourceIndex(0) +3 >Emitted(70, 7) Source(129, 7) + SourceIndex(0) +4 >Emitted(70, 9) Source(129, 9) + SourceIndex(0) +5 >Emitted(70, 12) Source(129, 12) + SourceIndex(0) +6 >Emitted(70, 22) Source(129, 21) + SourceIndex(0) +7 >Emitted(70, 23) Source(129, 22) + SourceIndex(0) +8 >Emitted(70, 25) Source(129, 24) + SourceIndex(0) +9 >Emitted(70, 26) Source(129, 25) + SourceIndex(0) +10>Emitted(70, 30) Source(129, 29) + SourceIndex(0) +11>Emitted(70, 36) Source(129, 35) + SourceIndex(0) +12>Emitted(70, 37) Source(129, 42) + SourceIndex(0) +13>Emitted(70, 38) Source(129, 43) + SourceIndex(0) +14>Emitted(70, 40) Source(129, 45) + SourceIndex(0) +15>Emitted(70, 41) Source(129, 46) + SourceIndex(0) +16>Emitted(70, 42) Source(129, 46) + SourceIndex(0) +17>Emitted(70, 43) Source(129, 47) + SourceIndex(0) +18>Emitted(70, 44) Source(129, 48) + SourceIndex(0) +19>Emitted(70, 45) Source(129, 49) + SourceIndex(0) --- >>>objc8.t7 = function (n) { return n; }; 1 > @@ -1759,21 +1748,21 @@ sourceFile:contextualTyping.ts 13> 14> } 15> ; -1 >Emitted(72, 1) Source(130, 1) + SourceIndex(0) -2 >Emitted(72, 6) Source(130, 6) + SourceIndex(0) -3 >Emitted(72, 7) Source(130, 7) + SourceIndex(0) -4 >Emitted(72, 9) Source(130, 9) + SourceIndex(0) -5 >Emitted(72, 12) Source(130, 12) + SourceIndex(0) -6 >Emitted(72, 22) Source(130, 21) + SourceIndex(0) -7 >Emitted(72, 23) Source(130, 30) + SourceIndex(0) -8 >Emitted(72, 27) Source(130, 34) + SourceIndex(0) -9 >Emitted(72, 33) Source(130, 40) + SourceIndex(0) -10>Emitted(72, 34) Source(130, 41) + SourceIndex(0) -11>Emitted(72, 35) Source(130, 42) + SourceIndex(0) -12>Emitted(72, 36) Source(130, 42) + SourceIndex(0) -13>Emitted(72, 37) Source(130, 43) + SourceIndex(0) -14>Emitted(72, 38) Source(130, 44) + SourceIndex(0) -15>Emitted(72, 39) Source(130, 45) + SourceIndex(0) +1 >Emitted(71, 1) Source(130, 1) + SourceIndex(0) +2 >Emitted(71, 6) Source(130, 6) + SourceIndex(0) +3 >Emitted(71, 7) Source(130, 7) + SourceIndex(0) +4 >Emitted(71, 9) Source(130, 9) + SourceIndex(0) +5 >Emitted(71, 12) Source(130, 12) + SourceIndex(0) +6 >Emitted(71, 22) Source(130, 21) + SourceIndex(0) +7 >Emitted(71, 23) Source(130, 30) + SourceIndex(0) +8 >Emitted(71, 27) Source(130, 34) + SourceIndex(0) +9 >Emitted(71, 33) Source(130, 40) + SourceIndex(0) +10>Emitted(71, 34) Source(130, 41) + SourceIndex(0) +11>Emitted(71, 35) Source(130, 42) + SourceIndex(0) +12>Emitted(71, 36) Source(130, 42) + SourceIndex(0) +13>Emitted(71, 37) Source(130, 43) + SourceIndex(0) +14>Emitted(71, 38) Source(130, 44) + SourceIndex(0) +15>Emitted(71, 39) Source(130, 45) + SourceIndex(0) --- >>>objc8.t8 = function (n) { return n; }; 1-> @@ -1808,21 +1797,21 @@ sourceFile:contextualTyping.ts 13> 14> } 15> ; -1->Emitted(73, 1) Source(132, 1) + SourceIndex(0) -2 >Emitted(73, 6) Source(132, 6) + SourceIndex(0) -3 >Emitted(73, 7) Source(132, 7) + SourceIndex(0) -4 >Emitted(73, 9) Source(132, 9) + SourceIndex(0) -5 >Emitted(73, 12) Source(132, 12) + SourceIndex(0) -6 >Emitted(73, 22) Source(132, 21) + SourceIndex(0) -7 >Emitted(73, 23) Source(132, 22) + SourceIndex(0) -8 >Emitted(73, 27) Source(132, 26) + SourceIndex(0) -9 >Emitted(73, 33) Source(132, 32) + SourceIndex(0) -10>Emitted(73, 34) Source(132, 33) + SourceIndex(0) -11>Emitted(73, 35) Source(132, 34) + SourceIndex(0) -12>Emitted(73, 36) Source(132, 35) + SourceIndex(0) -13>Emitted(73, 37) Source(132, 36) + SourceIndex(0) -14>Emitted(73, 38) Source(132, 37) + SourceIndex(0) -15>Emitted(73, 39) Source(132, 38) + SourceIndex(0) +1->Emitted(72, 1) Source(132, 1) + SourceIndex(0) +2 >Emitted(72, 6) Source(132, 6) + SourceIndex(0) +3 >Emitted(72, 7) Source(132, 7) + SourceIndex(0) +4 >Emitted(72, 9) Source(132, 9) + SourceIndex(0) +5 >Emitted(72, 12) Source(132, 12) + SourceIndex(0) +6 >Emitted(72, 22) Source(132, 21) + SourceIndex(0) +7 >Emitted(72, 23) Source(132, 22) + SourceIndex(0) +8 >Emitted(72, 27) Source(132, 26) + SourceIndex(0) +9 >Emitted(72, 33) Source(132, 32) + SourceIndex(0) +10>Emitted(72, 34) Source(132, 33) + SourceIndex(0) +11>Emitted(72, 35) Source(132, 34) + SourceIndex(0) +12>Emitted(72, 36) Source(132, 35) + SourceIndex(0) +13>Emitted(72, 37) Source(132, 36) + SourceIndex(0) +14>Emitted(72, 38) Source(132, 37) + SourceIndex(0) +15>Emitted(72, 39) Source(132, 38) + SourceIndex(0) --- >>>objc8.t9 = [[], []]; 1 > @@ -1849,17 +1838,17 @@ sourceFile:contextualTyping.ts 9 > [] 10> ] 11> ; -1 >Emitted(74, 1) Source(133, 1) + SourceIndex(0) -2 >Emitted(74, 6) Source(133, 6) + SourceIndex(0) -3 >Emitted(74, 7) Source(133, 7) + SourceIndex(0) -4 >Emitted(74, 9) Source(133, 9) + SourceIndex(0) -5 >Emitted(74, 12) Source(133, 12) + SourceIndex(0) -6 >Emitted(74, 13) Source(133, 13) + SourceIndex(0) -7 >Emitted(74, 15) Source(133, 15) + SourceIndex(0) -8 >Emitted(74, 17) Source(133, 16) + SourceIndex(0) -9 >Emitted(74, 19) Source(133, 18) + SourceIndex(0) -10>Emitted(74, 20) Source(133, 19) + SourceIndex(0) -11>Emitted(74, 21) Source(133, 20) + SourceIndex(0) +1 >Emitted(73, 1) Source(133, 1) + SourceIndex(0) +2 >Emitted(73, 6) Source(133, 6) + SourceIndex(0) +3 >Emitted(73, 7) Source(133, 7) + SourceIndex(0) +4 >Emitted(73, 9) Source(133, 9) + SourceIndex(0) +5 >Emitted(73, 12) Source(133, 12) + SourceIndex(0) +6 >Emitted(73, 13) Source(133, 13) + SourceIndex(0) +7 >Emitted(73, 15) Source(133, 15) + SourceIndex(0) +8 >Emitted(73, 17) Source(133, 16) + SourceIndex(0) +9 >Emitted(73, 19) Source(133, 18) + SourceIndex(0) +10>Emitted(73, 20) Source(133, 19) + SourceIndex(0) +11>Emitted(73, 21) Source(133, 20) + SourceIndex(0) --- >>>objc8.t10 = [({}), ({})]; 1-> @@ -1894,21 +1883,21 @@ sourceFile:contextualTyping.ts 13> ) 14> ] 15> ; -1->Emitted(75, 1) Source(134, 1) + SourceIndex(0) -2 >Emitted(75, 6) Source(134, 6) + SourceIndex(0) -3 >Emitted(75, 7) Source(134, 7) + SourceIndex(0) -4 >Emitted(75, 10) Source(134, 10) + SourceIndex(0) -5 >Emitted(75, 13) Source(134, 13) + SourceIndex(0) -6 >Emitted(75, 14) Source(134, 20) + SourceIndex(0) -7 >Emitted(75, 15) Source(134, 21) + SourceIndex(0) -8 >Emitted(75, 17) Source(134, 23) + SourceIndex(0) -9 >Emitted(75, 18) Source(134, 24) + SourceIndex(0) -10>Emitted(75, 20) Source(134, 31) + SourceIndex(0) -11>Emitted(75, 21) Source(134, 32) + SourceIndex(0) -12>Emitted(75, 23) Source(134, 34) + SourceIndex(0) -13>Emitted(75, 24) Source(134, 35) + SourceIndex(0) -14>Emitted(75, 25) Source(134, 36) + SourceIndex(0) -15>Emitted(75, 26) Source(134, 37) + SourceIndex(0) +1->Emitted(74, 1) Source(134, 1) + SourceIndex(0) +2 >Emitted(74, 6) Source(134, 6) + SourceIndex(0) +3 >Emitted(74, 7) Source(134, 7) + SourceIndex(0) +4 >Emitted(74, 10) Source(134, 10) + SourceIndex(0) +5 >Emitted(74, 13) Source(134, 13) + SourceIndex(0) +6 >Emitted(74, 14) Source(134, 20) + SourceIndex(0) +7 >Emitted(74, 15) Source(134, 21) + SourceIndex(0) +8 >Emitted(74, 17) Source(134, 23) + SourceIndex(0) +9 >Emitted(74, 18) Source(134, 24) + SourceIndex(0) +10>Emitted(74, 20) Source(134, 31) + SourceIndex(0) +11>Emitted(74, 21) Source(134, 32) + SourceIndex(0) +12>Emitted(74, 23) Source(134, 34) + SourceIndex(0) +13>Emitted(74, 24) Source(134, 35) + SourceIndex(0) +14>Emitted(74, 25) Source(134, 36) + SourceIndex(0) +15>Emitted(74, 26) Source(134, 37) + SourceIndex(0) --- >>>objc8.t11 = [function (n, s) { return s; }]; 1-> @@ -1950,25 +1939,25 @@ sourceFile:contextualTyping.ts 17> } 18> ] 19> ; -1->Emitted(76, 1) Source(135, 1) + SourceIndex(0) -2 >Emitted(76, 6) Source(135, 6) + SourceIndex(0) -3 >Emitted(76, 7) Source(135, 7) + SourceIndex(0) -4 >Emitted(76, 10) Source(135, 10) + SourceIndex(0) -5 >Emitted(76, 13) Source(135, 13) + SourceIndex(0) -6 >Emitted(76, 14) Source(135, 14) + SourceIndex(0) -7 >Emitted(76, 24) Source(135, 23) + SourceIndex(0) -8 >Emitted(76, 25) Source(135, 24) + SourceIndex(0) -9 >Emitted(76, 27) Source(135, 26) + SourceIndex(0) -10>Emitted(76, 28) Source(135, 27) + SourceIndex(0) -11>Emitted(76, 32) Source(135, 31) + SourceIndex(0) -12>Emitted(76, 38) Source(135, 37) + SourceIndex(0) -13>Emitted(76, 39) Source(135, 38) + SourceIndex(0) -14>Emitted(76, 40) Source(135, 39) + SourceIndex(0) -15>Emitted(76, 41) Source(135, 40) + SourceIndex(0) -16>Emitted(76, 42) Source(135, 41) + SourceIndex(0) -17>Emitted(76, 43) Source(135, 42) + SourceIndex(0) -18>Emitted(76, 44) Source(135, 43) + SourceIndex(0) -19>Emitted(76, 45) Source(135, 44) + SourceIndex(0) +1->Emitted(75, 1) Source(135, 1) + SourceIndex(0) +2 >Emitted(75, 6) Source(135, 6) + SourceIndex(0) +3 >Emitted(75, 7) Source(135, 7) + SourceIndex(0) +4 >Emitted(75, 10) Source(135, 10) + SourceIndex(0) +5 >Emitted(75, 13) Source(135, 13) + SourceIndex(0) +6 >Emitted(75, 14) Source(135, 14) + SourceIndex(0) +7 >Emitted(75, 24) Source(135, 23) + SourceIndex(0) +8 >Emitted(75, 25) Source(135, 24) + SourceIndex(0) +9 >Emitted(75, 27) Source(135, 26) + SourceIndex(0) +10>Emitted(75, 28) Source(135, 27) + SourceIndex(0) +11>Emitted(75, 32) Source(135, 31) + SourceIndex(0) +12>Emitted(75, 38) Source(135, 37) + SourceIndex(0) +13>Emitted(75, 39) Source(135, 38) + SourceIndex(0) +14>Emitted(75, 40) Source(135, 39) + SourceIndex(0) +15>Emitted(75, 41) Source(135, 40) + SourceIndex(0) +16>Emitted(75, 42) Source(135, 41) + SourceIndex(0) +17>Emitted(75, 43) Source(135, 42) + SourceIndex(0) +18>Emitted(75, 44) Source(135, 43) + SourceIndex(0) +19>Emitted(75, 45) Source(135, 44) + SourceIndex(0) --- >>>objc8.t12 = { 1 > @@ -1983,11 +1972,11 @@ sourceFile:contextualTyping.ts 3 > . 4 > t12 5 > = -1 >Emitted(77, 1) Source(136, 1) + SourceIndex(0) -2 >Emitted(77, 6) Source(136, 6) + SourceIndex(0) -3 >Emitted(77, 7) Source(136, 7) + SourceIndex(0) -4 >Emitted(77, 10) Source(136, 10) + SourceIndex(0) -5 >Emitted(77, 13) Source(136, 13) + SourceIndex(0) +1 >Emitted(76, 1) Source(136, 1) + SourceIndex(0) +2 >Emitted(76, 6) Source(136, 6) + SourceIndex(0) +3 >Emitted(76, 7) Source(136, 7) + SourceIndex(0) +4 >Emitted(76, 10) Source(136, 10) + SourceIndex(0) +5 >Emitted(76, 13) Source(136, 13) + SourceIndex(0) --- >>> foo: ({}) 1->^^^^ @@ -2003,12 +1992,12 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(78, 5) Source(137, 5) + SourceIndex(0) -2 >Emitted(78, 8) Source(137, 8) + SourceIndex(0) -3 >Emitted(78, 10) Source(137, 16) + SourceIndex(0) -4 >Emitted(78, 11) Source(137, 17) + SourceIndex(0) -5 >Emitted(78, 13) Source(137, 19) + SourceIndex(0) -6 >Emitted(78, 14) Source(137, 20) + SourceIndex(0) +1->Emitted(77, 5) Source(137, 5) + SourceIndex(0) +2 >Emitted(77, 8) Source(137, 8) + SourceIndex(0) +3 >Emitted(77, 10) Source(137, 16) + SourceIndex(0) +4 >Emitted(77, 11) Source(137, 17) + SourceIndex(0) +5 >Emitted(77, 13) Source(137, 19) + SourceIndex(0) +6 >Emitted(77, 14) Source(137, 20) + SourceIndex(0) --- >>>}; 1 >^ @@ -2017,8 +2006,8 @@ sourceFile:contextualTyping.ts 1 > >} 2 > -1 >Emitted(79, 2) Source(138, 2) + SourceIndex(0) -2 >Emitted(79, 3) Source(138, 2) + SourceIndex(0) +1 >Emitted(78, 2) Source(138, 2) + SourceIndex(0) +2 >Emitted(78, 3) Source(138, 2) + SourceIndex(0) --- >>>objc8.t13 = ({ 1-> @@ -2035,12 +2024,12 @@ sourceFile:contextualTyping.ts 4 > t13 5 > = 6 > ( -1->Emitted(80, 1) Source(139, 1) + SourceIndex(0) -2 >Emitted(80, 6) Source(139, 6) + SourceIndex(0) -3 >Emitted(80, 7) Source(139, 7) + SourceIndex(0) -4 >Emitted(80, 10) Source(139, 10) + SourceIndex(0) -5 >Emitted(80, 13) Source(139, 19) + SourceIndex(0) -6 >Emitted(80, 14) Source(139, 20) + SourceIndex(0) +1->Emitted(79, 1) Source(139, 1) + SourceIndex(0) +2 >Emitted(79, 6) Source(139, 6) + SourceIndex(0) +3 >Emitted(79, 7) Source(139, 7) + SourceIndex(0) +4 >Emitted(79, 10) Source(139, 10) + SourceIndex(0) +5 >Emitted(79, 13) Source(139, 19) + SourceIndex(0) +6 >Emitted(79, 14) Source(139, 20) + SourceIndex(0) --- >>> f: function (i, s) { return s; } 1->^^^^ @@ -2072,20 +2061,20 @@ sourceFile:contextualTyping.ts 12> ; 13> 14> } -1->Emitted(81, 5) Source(140, 5) + SourceIndex(0) -2 >Emitted(81, 6) Source(140, 6) + SourceIndex(0) -3 >Emitted(81, 8) Source(140, 8) + SourceIndex(0) -4 >Emitted(81, 18) Source(140, 17) + SourceIndex(0) -5 >Emitted(81, 19) Source(140, 18) + SourceIndex(0) -6 >Emitted(81, 21) Source(140, 20) + SourceIndex(0) -7 >Emitted(81, 22) Source(140, 21) + SourceIndex(0) -8 >Emitted(81, 26) Source(140, 25) + SourceIndex(0) -9 >Emitted(81, 32) Source(140, 31) + SourceIndex(0) -10>Emitted(81, 33) Source(140, 32) + SourceIndex(0) -11>Emitted(81, 34) Source(140, 33) + SourceIndex(0) -12>Emitted(81, 35) Source(140, 34) + SourceIndex(0) -13>Emitted(81, 36) Source(140, 35) + SourceIndex(0) -14>Emitted(81, 37) Source(140, 36) + SourceIndex(0) +1->Emitted(80, 5) Source(140, 5) + SourceIndex(0) +2 >Emitted(80, 6) Source(140, 6) + SourceIndex(0) +3 >Emitted(80, 8) Source(140, 8) + SourceIndex(0) +4 >Emitted(80, 18) Source(140, 17) + SourceIndex(0) +5 >Emitted(80, 19) Source(140, 18) + SourceIndex(0) +6 >Emitted(80, 21) Source(140, 20) + SourceIndex(0) +7 >Emitted(80, 22) Source(140, 21) + SourceIndex(0) +8 >Emitted(80, 26) Source(140, 25) + SourceIndex(0) +9 >Emitted(80, 32) Source(140, 31) + SourceIndex(0) +10>Emitted(80, 33) Source(140, 32) + SourceIndex(0) +11>Emitted(80, 34) Source(140, 33) + SourceIndex(0) +12>Emitted(80, 35) Source(140, 34) + SourceIndex(0) +13>Emitted(80, 36) Source(140, 35) + SourceIndex(0) +14>Emitted(80, 37) Source(140, 36) + SourceIndex(0) --- >>>}); 1 >^ @@ -2096,9 +2085,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > -1 >Emitted(82, 2) Source(141, 2) + SourceIndex(0) -2 >Emitted(82, 3) Source(141, 3) + SourceIndex(0) -3 >Emitted(82, 4) Source(141, 3) + SourceIndex(0) +1 >Emitted(81, 2) Source(141, 2) + SourceIndex(0) +2 >Emitted(81, 3) Source(141, 3) + SourceIndex(0) +3 >Emitted(81, 4) Source(141, 3) + SourceIndex(0) --- >>>objc8.t14 = ({ 1-> @@ -2114,12 +2103,12 @@ sourceFile:contextualTyping.ts 4 > t14 5 > = 6 > ( -1->Emitted(83, 1) Source(142, 1) + SourceIndex(0) -2 >Emitted(83, 6) Source(142, 6) + SourceIndex(0) -3 >Emitted(83, 7) Source(142, 7) + SourceIndex(0) -4 >Emitted(83, 10) Source(142, 10) + SourceIndex(0) -5 >Emitted(83, 13) Source(142, 19) + SourceIndex(0) -6 >Emitted(83, 14) Source(142, 20) + SourceIndex(0) +1->Emitted(82, 1) Source(142, 1) + SourceIndex(0) +2 >Emitted(82, 6) Source(142, 6) + SourceIndex(0) +3 >Emitted(82, 7) Source(142, 7) + SourceIndex(0) +4 >Emitted(82, 10) Source(142, 10) + SourceIndex(0) +5 >Emitted(82, 13) Source(142, 19) + SourceIndex(0) +6 >Emitted(82, 14) Source(142, 20) + SourceIndex(0) --- >>> a: [] 1 >^^^^ @@ -2131,10 +2120,10 @@ sourceFile:contextualTyping.ts 2 > a 3 > : 4 > [] -1 >Emitted(84, 5) Source(143, 5) + SourceIndex(0) -2 >Emitted(84, 6) Source(143, 6) + SourceIndex(0) -3 >Emitted(84, 8) Source(143, 8) + SourceIndex(0) -4 >Emitted(84, 10) Source(143, 10) + SourceIndex(0) +1 >Emitted(83, 5) Source(143, 5) + SourceIndex(0) +2 >Emitted(83, 6) Source(143, 6) + SourceIndex(0) +3 >Emitted(83, 8) Source(143, 8) + SourceIndex(0) +4 >Emitted(83, 10) Source(143, 10) + SourceIndex(0) --- >>>}); 1 >^ @@ -2145,9 +2134,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > -1 >Emitted(85, 2) Source(144, 2) + SourceIndex(0) -2 >Emitted(85, 3) Source(144, 3) + SourceIndex(0) -3 >Emitted(85, 4) Source(144, 3) + SourceIndex(0) +1 >Emitted(84, 2) Source(144, 2) + SourceIndex(0) +2 >Emitted(84, 3) Source(144, 3) + SourceIndex(0) +3 >Emitted(84, 4) Source(144, 3) + SourceIndex(0) --- >>>// CONTEXT: Function call 1-> @@ -2158,9 +2147,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Function call -1->Emitted(86, 1) Source(146, 1) + SourceIndex(0) -2 >Emitted(86, 1) Source(145, 1) + SourceIndex(0) -3 >Emitted(86, 26) Source(145, 26) + SourceIndex(0) +1->Emitted(85, 1) Source(146, 1) + SourceIndex(0) +2 >Emitted(85, 1) Source(145, 1) + SourceIndex(0) +3 >Emitted(85, 26) Source(145, 26) + SourceIndex(0) --- >>>function c9t5(f) { } 1 >^^^^^^^^^^^^^^ @@ -2172,10 +2161,10 @@ sourceFile:contextualTyping.ts 2 > f: (n: number) => IFoo 3 > ) { 4 > } -1 >Emitted(87, 15) Source(146, 15) + SourceIndex(0) -2 >Emitted(87, 16) Source(146, 37) + SourceIndex(0) -3 >Emitted(87, 20) Source(146, 40) + SourceIndex(0) name (c9t5) -4 >Emitted(87, 21) Source(146, 41) + SourceIndex(0) name (c9t5) +1 >Emitted(86, 15) Source(146, 15) + SourceIndex(0) +2 >Emitted(86, 16) Source(146, 37) + SourceIndex(0) +3 >Emitted(86, 20) Source(146, 40) + SourceIndex(0) name (c9t5) +4 >Emitted(86, 21) Source(146, 41) + SourceIndex(0) name (c9t5) --- >>>; 1 > @@ -2183,8 +2172,8 @@ sourceFile:contextualTyping.ts 3 > ^^^^^^^^^^^^^^^^^^^-> 1 > 2 >; -1 >Emitted(88, 1) Source(146, 41) + SourceIndex(0) -2 >Emitted(88, 2) Source(146, 42) + SourceIndex(0) +1 >Emitted(87, 1) Source(146, 41) + SourceIndex(0) +2 >Emitted(87, 2) Source(146, 42) + SourceIndex(0) --- >>>c9t5(function (n) { 1-> @@ -2199,11 +2188,11 @@ sourceFile:contextualTyping.ts 3 > ( 4 > function( 5 > n -1->Emitted(89, 1) Source(147, 1) + SourceIndex(0) -2 >Emitted(89, 5) Source(147, 5) + SourceIndex(0) -3 >Emitted(89, 6) Source(147, 6) + SourceIndex(0) -4 >Emitted(89, 16) Source(147, 15) + SourceIndex(0) -5 >Emitted(89, 17) Source(147, 16) + SourceIndex(0) +1->Emitted(88, 1) Source(147, 1) + SourceIndex(0) +2 >Emitted(88, 5) Source(147, 5) + SourceIndex(0) +3 >Emitted(88, 6) Source(147, 6) + SourceIndex(0) +4 >Emitted(88, 16) Source(147, 15) + SourceIndex(0) +5 >Emitted(88, 17) Source(147, 16) + SourceIndex(0) --- >>> return ({}); 1->^^^^ @@ -2221,13 +2210,13 @@ sourceFile:contextualTyping.ts 5 > {} 6 > ) 7 > ; -1->Emitted(90, 5) Source(148, 5) + SourceIndex(0) -2 >Emitted(90, 11) Source(148, 11) + SourceIndex(0) -3 >Emitted(90, 12) Source(148, 18) + SourceIndex(0) -4 >Emitted(90, 13) Source(148, 19) + SourceIndex(0) -5 >Emitted(90, 15) Source(148, 21) + SourceIndex(0) -6 >Emitted(90, 16) Source(148, 22) + SourceIndex(0) -7 >Emitted(90, 17) Source(148, 23) + SourceIndex(0) +1->Emitted(89, 5) Source(148, 5) + SourceIndex(0) +2 >Emitted(89, 11) Source(148, 11) + SourceIndex(0) +3 >Emitted(89, 12) Source(148, 18) + SourceIndex(0) +4 >Emitted(89, 13) Source(148, 19) + SourceIndex(0) +5 >Emitted(89, 15) Source(148, 21) + SourceIndex(0) +6 >Emitted(89, 16) Source(148, 22) + SourceIndex(0) +7 >Emitted(89, 17) Source(148, 23) + SourceIndex(0) --- >>>}); 1 > @@ -2240,10 +2229,10 @@ sourceFile:contextualTyping.ts 2 >} 3 > ) 4 > ; -1 >Emitted(91, 1) Source(149, 1) + SourceIndex(0) -2 >Emitted(91, 2) Source(149, 2) + SourceIndex(0) -3 >Emitted(91, 3) Source(149, 3) + SourceIndex(0) -4 >Emitted(91, 4) Source(149, 4) + SourceIndex(0) +1 >Emitted(90, 1) Source(149, 1) + SourceIndex(0) +2 >Emitted(90, 2) Source(149, 2) + SourceIndex(0) +3 >Emitted(90, 3) Source(149, 3) + SourceIndex(0) +4 >Emitted(90, 4) Source(149, 4) + SourceIndex(0) --- >>>// CONTEXT: Return statement 1-> @@ -2256,9 +2245,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Return statement -1->Emitted(92, 1) Source(152, 1) + SourceIndex(0) -2 >Emitted(92, 1) Source(151, 1) + SourceIndex(0) -3 >Emitted(92, 29) Source(151, 29) + SourceIndex(0) +1->Emitted(91, 1) Source(152, 1) + SourceIndex(0) +2 >Emitted(91, 1) Source(151, 1) + SourceIndex(0) +3 >Emitted(91, 29) Source(151, 29) + SourceIndex(0) --- >>>var c10t5 = function () { return function (n) { return ({}); }; }; 1->^^^^ @@ -2304,27 +2293,27 @@ sourceFile:contextualTyping.ts 19> 20> } 21> ; -1->Emitted(93, 5) Source(152, 5) + SourceIndex(0) -2 >Emitted(93, 10) Source(152, 10) + SourceIndex(0) -3 >Emitted(93, 13) Source(152, 40) + SourceIndex(0) -4 >Emitted(93, 27) Source(152, 53) + SourceIndex(0) -5 >Emitted(93, 33) Source(152, 59) + SourceIndex(0) -6 >Emitted(93, 34) Source(152, 60) + SourceIndex(0) -7 >Emitted(93, 44) Source(152, 69) + SourceIndex(0) -8 >Emitted(93, 45) Source(152, 70) + SourceIndex(0) -9 >Emitted(93, 49) Source(152, 74) + SourceIndex(0) -10>Emitted(93, 55) Source(152, 80) + SourceIndex(0) -11>Emitted(93, 56) Source(152, 87) + SourceIndex(0) -12>Emitted(93, 57) Source(152, 88) + SourceIndex(0) -13>Emitted(93, 59) Source(152, 90) + SourceIndex(0) -14>Emitted(93, 60) Source(152, 91) + SourceIndex(0) -15>Emitted(93, 61) Source(152, 91) + SourceIndex(0) -16>Emitted(93, 62) Source(152, 92) + SourceIndex(0) -17>Emitted(93, 63) Source(152, 93) + SourceIndex(0) -18>Emitted(93, 64) Source(152, 93) + SourceIndex(0) -19>Emitted(93, 65) Source(152, 94) + SourceIndex(0) -20>Emitted(93, 66) Source(152, 95) + SourceIndex(0) -21>Emitted(93, 67) Source(152, 96) + SourceIndex(0) +1->Emitted(92, 5) Source(152, 5) + SourceIndex(0) +2 >Emitted(92, 10) Source(152, 10) + SourceIndex(0) +3 >Emitted(92, 13) Source(152, 40) + SourceIndex(0) +4 >Emitted(92, 27) Source(152, 53) + SourceIndex(0) +5 >Emitted(92, 33) Source(152, 59) + SourceIndex(0) +6 >Emitted(92, 34) Source(152, 60) + SourceIndex(0) +7 >Emitted(92, 44) Source(152, 69) + SourceIndex(0) +8 >Emitted(92, 45) Source(152, 70) + SourceIndex(0) +9 >Emitted(92, 49) Source(152, 74) + SourceIndex(0) +10>Emitted(92, 55) Source(152, 80) + SourceIndex(0) +11>Emitted(92, 56) Source(152, 87) + SourceIndex(0) +12>Emitted(92, 57) Source(152, 88) + SourceIndex(0) +13>Emitted(92, 59) Source(152, 90) + SourceIndex(0) +14>Emitted(92, 60) Source(152, 91) + SourceIndex(0) +15>Emitted(92, 61) Source(152, 91) + SourceIndex(0) +16>Emitted(92, 62) Source(152, 92) + SourceIndex(0) +17>Emitted(92, 63) Source(152, 93) + SourceIndex(0) +18>Emitted(92, 64) Source(152, 93) + SourceIndex(0) +19>Emitted(92, 65) Source(152, 94) + SourceIndex(0) +20>Emitted(92, 66) Source(152, 95) + SourceIndex(0) +21>Emitted(92, 67) Source(152, 96) + SourceIndex(0) --- >>>// CONTEXT: Newing a class 1 > @@ -2337,9 +2326,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Newing a class -1 >Emitted(94, 1) Source(155, 1) + SourceIndex(0) -2 >Emitted(94, 1) Source(154, 1) + SourceIndex(0) -3 >Emitted(94, 27) Source(154, 27) + SourceIndex(0) +1 >Emitted(93, 1) Source(155, 1) + SourceIndex(0) +2 >Emitted(93, 1) Source(154, 1) + SourceIndex(0) +3 >Emitted(93, 27) Source(154, 27) + SourceIndex(0) --- >>>var C11t5 = (function () { >>> function C11t5(f) { @@ -2350,9 +2339,9 @@ sourceFile:contextualTyping.ts >class C11t5 { 2 > constructor( 3 > f: (n: number) => IFoo -1->Emitted(96, 5) Source(155, 15) + SourceIndex(0) name (C11t5) -2 >Emitted(96, 20) Source(155, 27) + SourceIndex(0) name (C11t5) -3 >Emitted(96, 21) Source(155, 49) + SourceIndex(0) name (C11t5) +1->Emitted(95, 5) Source(155, 15) + SourceIndex(0) name (C11t5) +2 >Emitted(95, 20) Source(155, 27) + SourceIndex(0) name (C11t5) +3 >Emitted(95, 21) Source(155, 49) + SourceIndex(0) name (C11t5) --- >>> } 1 >^^^^ @@ -2360,16 +2349,16 @@ sourceFile:contextualTyping.ts 3 > ^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(97, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) -2 >Emitted(97, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) +1 >Emitted(96, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) +2 >Emitted(96, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) --- >>> return C11t5; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(98, 5) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(98, 17) Source(155, 56) + SourceIndex(0) name (C11t5) +1->Emitted(97, 5) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(97, 17) Source(155, 56) + SourceIndex(0) name (C11t5) --- >>>})(); 1 > @@ -2380,10 +2369,10 @@ sourceFile:contextualTyping.ts 2 >} 3 > 4 > class C11t5 { constructor(f: (n: number) => IFoo) { } } -1 >Emitted(99, 1) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(99, 2) Source(155, 56) + SourceIndex(0) name (C11t5) -3 >Emitted(99, 2) Source(155, 1) + SourceIndex(0) -4 >Emitted(99, 6) Source(155, 56) + SourceIndex(0) +1 >Emitted(98, 1) Source(155, 55) + SourceIndex(0) name (C11t5) +2 >Emitted(98, 2) Source(155, 56) + SourceIndex(0) name (C11t5) +3 >Emitted(98, 2) Source(155, 1) + SourceIndex(0) +4 >Emitted(98, 6) Source(155, 56) + SourceIndex(0) --- >>>; 1 > @@ -2391,8 +2380,8 @@ sourceFile:contextualTyping.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >; -1 >Emitted(100, 1) Source(155, 56) + SourceIndex(0) -2 >Emitted(100, 2) Source(155, 57) + SourceIndex(0) +1 >Emitted(99, 1) Source(155, 56) + SourceIndex(0) +2 >Emitted(99, 2) Source(155, 57) + SourceIndex(0) --- >>>var i = new C11t5(function (n) { return ({}); }); 1-> @@ -2436,26 +2425,26 @@ sourceFile:contextualTyping.ts 18> } 19> ) 20> ; -1->Emitted(101, 1) Source(156, 1) + SourceIndex(0) -2 >Emitted(101, 5) Source(156, 5) + SourceIndex(0) -3 >Emitted(101, 6) Source(156, 6) + SourceIndex(0) -4 >Emitted(101, 9) Source(156, 9) + SourceIndex(0) -5 >Emitted(101, 13) Source(156, 13) + SourceIndex(0) -6 >Emitted(101, 18) Source(156, 18) + SourceIndex(0) -7 >Emitted(101, 19) Source(156, 19) + SourceIndex(0) -8 >Emitted(101, 29) Source(156, 28) + SourceIndex(0) -9 >Emitted(101, 30) Source(156, 29) + SourceIndex(0) -10>Emitted(101, 34) Source(156, 33) + SourceIndex(0) -11>Emitted(101, 40) Source(156, 39) + SourceIndex(0) -12>Emitted(101, 41) Source(156, 46) + SourceIndex(0) -13>Emitted(101, 42) Source(156, 47) + SourceIndex(0) -14>Emitted(101, 44) Source(156, 49) + SourceIndex(0) -15>Emitted(101, 45) Source(156, 50) + SourceIndex(0) -16>Emitted(101, 46) Source(156, 50) + SourceIndex(0) -17>Emitted(101, 47) Source(156, 51) + SourceIndex(0) -18>Emitted(101, 48) Source(156, 52) + SourceIndex(0) -19>Emitted(101, 49) Source(156, 53) + SourceIndex(0) -20>Emitted(101, 50) Source(156, 54) + SourceIndex(0) +1->Emitted(100, 1) Source(156, 1) + SourceIndex(0) +2 >Emitted(100, 5) Source(156, 5) + SourceIndex(0) +3 >Emitted(100, 6) Source(156, 6) + SourceIndex(0) +4 >Emitted(100, 9) Source(156, 9) + SourceIndex(0) +5 >Emitted(100, 13) Source(156, 13) + SourceIndex(0) +6 >Emitted(100, 18) Source(156, 18) + SourceIndex(0) +7 >Emitted(100, 19) Source(156, 19) + SourceIndex(0) +8 >Emitted(100, 29) Source(156, 28) + SourceIndex(0) +9 >Emitted(100, 30) Source(156, 29) + SourceIndex(0) +10>Emitted(100, 34) Source(156, 33) + SourceIndex(0) +11>Emitted(100, 40) Source(156, 39) + SourceIndex(0) +12>Emitted(100, 41) Source(156, 46) + SourceIndex(0) +13>Emitted(100, 42) Source(156, 47) + SourceIndex(0) +14>Emitted(100, 44) Source(156, 49) + SourceIndex(0) +15>Emitted(100, 45) Source(156, 50) + SourceIndex(0) +16>Emitted(100, 46) Source(156, 50) + SourceIndex(0) +17>Emitted(100, 47) Source(156, 51) + SourceIndex(0) +18>Emitted(100, 48) Source(156, 52) + SourceIndex(0) +19>Emitted(100, 49) Source(156, 53) + SourceIndex(0) +20>Emitted(100, 50) Source(156, 54) + SourceIndex(0) --- >>>// CONTEXT: Type annotated expression 1 > @@ -2468,9 +2457,9 @@ sourceFile:contextualTyping.ts > 2 > 3 >// CONTEXT: Type annotated expression -1 >Emitted(102, 1) Source(159, 1) + SourceIndex(0) -2 >Emitted(102, 1) Source(158, 1) + SourceIndex(0) -3 >Emitted(102, 38) Source(158, 38) + SourceIndex(0) +1 >Emitted(101, 1) Source(159, 1) + SourceIndex(0) +2 >Emitted(101, 1) Source(158, 1) + SourceIndex(0) +3 >Emitted(101, 38) Source(158, 38) + SourceIndex(0) --- >>>var c12t1 = (function (s) { return s; }); 1->^^^^ @@ -2504,21 +2493,21 @@ sourceFile:contextualTyping.ts 13> } 14> ) 15> ; -1->Emitted(103, 5) Source(159, 5) + SourceIndex(0) -2 >Emitted(103, 10) Source(159, 10) + SourceIndex(0) -3 >Emitted(103, 13) Source(159, 37) + SourceIndex(0) -4 >Emitted(103, 14) Source(159, 38) + SourceIndex(0) -5 >Emitted(103, 24) Source(159, 47) + SourceIndex(0) -6 >Emitted(103, 25) Source(159, 48) + SourceIndex(0) -7 >Emitted(103, 29) Source(159, 52) + SourceIndex(0) -8 >Emitted(103, 35) Source(159, 58) + SourceIndex(0) -9 >Emitted(103, 36) Source(159, 59) + SourceIndex(0) -10>Emitted(103, 37) Source(159, 60) + SourceIndex(0) -11>Emitted(103, 38) Source(159, 60) + SourceIndex(0) -12>Emitted(103, 39) Source(159, 61) + SourceIndex(0) -13>Emitted(103, 40) Source(159, 62) + SourceIndex(0) -14>Emitted(103, 41) Source(159, 63) + SourceIndex(0) -15>Emitted(103, 42) Source(159, 64) + SourceIndex(0) +1->Emitted(102, 5) Source(159, 5) + SourceIndex(0) +2 >Emitted(102, 10) Source(159, 10) + SourceIndex(0) +3 >Emitted(102, 13) Source(159, 37) + SourceIndex(0) +4 >Emitted(102, 14) Source(159, 38) + SourceIndex(0) +5 >Emitted(102, 24) Source(159, 47) + SourceIndex(0) +6 >Emitted(102, 25) Source(159, 48) + SourceIndex(0) +7 >Emitted(102, 29) Source(159, 52) + SourceIndex(0) +8 >Emitted(102, 35) Source(159, 58) + SourceIndex(0) +9 >Emitted(102, 36) Source(159, 59) + SourceIndex(0) +10>Emitted(102, 37) Source(159, 60) + SourceIndex(0) +11>Emitted(102, 38) Source(159, 60) + SourceIndex(0) +12>Emitted(102, 39) Source(159, 61) + SourceIndex(0) +13>Emitted(102, 40) Source(159, 62) + SourceIndex(0) +14>Emitted(102, 41) Source(159, 63) + SourceIndex(0) +15>Emitted(102, 42) Source(159, 64) + SourceIndex(0) --- >>>var c12t2 = ({ 1 > @@ -2532,11 +2521,11 @@ sourceFile:contextualTyping.ts 3 > c12t2 4 > = 5 > ( -1 >Emitted(104, 1) Source(160, 1) + SourceIndex(0) -2 >Emitted(104, 5) Source(160, 5) + SourceIndex(0) -3 >Emitted(104, 10) Source(160, 10) + SourceIndex(0) -4 >Emitted(104, 13) Source(160, 20) + SourceIndex(0) -5 >Emitted(104, 14) Source(160, 21) + SourceIndex(0) +1 >Emitted(103, 1) Source(160, 1) + SourceIndex(0) +2 >Emitted(103, 5) Source(160, 5) + SourceIndex(0) +3 >Emitted(103, 10) Source(160, 10) + SourceIndex(0) +4 >Emitted(103, 13) Source(160, 20) + SourceIndex(0) +5 >Emitted(103, 14) Source(160, 21) + SourceIndex(0) --- >>> n: 1 1 >^^^^ @@ -2548,10 +2537,10 @@ sourceFile:contextualTyping.ts 2 > n 3 > : 4 > 1 -1 >Emitted(105, 5) Source(161, 5) + SourceIndex(0) -2 >Emitted(105, 6) Source(161, 6) + SourceIndex(0) -3 >Emitted(105, 8) Source(161, 8) + SourceIndex(0) -4 >Emitted(105, 9) Source(161, 9) + SourceIndex(0) +1 >Emitted(104, 5) Source(161, 5) + SourceIndex(0) +2 >Emitted(104, 6) Source(161, 6) + SourceIndex(0) +3 >Emitted(104, 8) Source(161, 8) + SourceIndex(0) +4 >Emitted(104, 9) Source(161, 9) + SourceIndex(0) --- >>>}); 1 >^ @@ -2562,9 +2551,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > ; -1 >Emitted(106, 2) Source(162, 2) + SourceIndex(0) -2 >Emitted(106, 3) Source(162, 3) + SourceIndex(0) -3 >Emitted(106, 4) Source(162, 4) + SourceIndex(0) +1 >Emitted(105, 2) Source(162, 2) + SourceIndex(0) +2 >Emitted(105, 3) Source(162, 3) + SourceIndex(0) +3 >Emitted(105, 4) Source(162, 4) + SourceIndex(0) --- >>>var c12t3 = []; 1-> @@ -2581,12 +2570,12 @@ sourceFile:contextualTyping.ts 4 > = 5 > [] 6 > ; -1->Emitted(107, 1) Source(163, 1) + SourceIndex(0) -2 >Emitted(107, 5) Source(163, 5) + SourceIndex(0) -3 >Emitted(107, 10) Source(163, 10) + SourceIndex(0) -4 >Emitted(107, 13) Source(163, 24) + SourceIndex(0) -5 >Emitted(107, 15) Source(163, 26) + SourceIndex(0) -6 >Emitted(107, 16) Source(163, 27) + SourceIndex(0) +1->Emitted(106, 1) Source(163, 1) + SourceIndex(0) +2 >Emitted(106, 5) Source(163, 5) + SourceIndex(0) +3 >Emitted(106, 10) Source(163, 10) + SourceIndex(0) +4 >Emitted(106, 13) Source(163, 24) + SourceIndex(0) +5 >Emitted(106, 15) Source(163, 26) + SourceIndex(0) +6 >Emitted(106, 16) Source(163, 27) + SourceIndex(0) --- >>>var c12t4 = function () { return ({}); }; 1-> @@ -2619,20 +2608,20 @@ sourceFile:contextualTyping.ts 12> 13> } 14> ; -1->Emitted(108, 1) Source(164, 1) + SourceIndex(0) -2 >Emitted(108, 5) Source(164, 5) + SourceIndex(0) -3 >Emitted(108, 10) Source(164, 10) + SourceIndex(0) -4 >Emitted(108, 13) Source(164, 26) + SourceIndex(0) -5 >Emitted(108, 27) Source(164, 39) + SourceIndex(0) -6 >Emitted(108, 33) Source(164, 45) + SourceIndex(0) -7 >Emitted(108, 34) Source(164, 52) + SourceIndex(0) -8 >Emitted(108, 35) Source(164, 53) + SourceIndex(0) -9 >Emitted(108, 37) Source(164, 55) + SourceIndex(0) -10>Emitted(108, 38) Source(164, 56) + SourceIndex(0) -11>Emitted(108, 39) Source(164, 56) + SourceIndex(0) -12>Emitted(108, 40) Source(164, 57) + SourceIndex(0) -13>Emitted(108, 41) Source(164, 58) + SourceIndex(0) -14>Emitted(108, 42) Source(164, 59) + SourceIndex(0) +1->Emitted(107, 1) Source(164, 1) + SourceIndex(0) +2 >Emitted(107, 5) Source(164, 5) + SourceIndex(0) +3 >Emitted(107, 10) Source(164, 10) + SourceIndex(0) +4 >Emitted(107, 13) Source(164, 26) + SourceIndex(0) +5 >Emitted(107, 27) Source(164, 39) + SourceIndex(0) +6 >Emitted(107, 33) Source(164, 45) + SourceIndex(0) +7 >Emitted(107, 34) Source(164, 52) + SourceIndex(0) +8 >Emitted(107, 35) Source(164, 53) + SourceIndex(0) +9 >Emitted(107, 37) Source(164, 55) + SourceIndex(0) +10>Emitted(107, 38) Source(164, 56) + SourceIndex(0) +11>Emitted(107, 39) Source(164, 56) + SourceIndex(0) +12>Emitted(107, 40) Source(164, 57) + SourceIndex(0) +13>Emitted(107, 41) Source(164, 58) + SourceIndex(0) +14>Emitted(107, 42) Source(164, 59) + SourceIndex(0) --- >>>var c12t5 = function (n) { return ({}); }; 1-> @@ -2669,22 +2658,22 @@ sourceFile:contextualTyping.ts 14> 15> } 16> ; -1->Emitted(109, 1) Source(165, 1) + SourceIndex(0) -2 >Emitted(109, 5) Source(165, 5) + SourceIndex(0) -3 >Emitted(109, 10) Source(165, 10) + SourceIndex(0) -4 >Emitted(109, 13) Source(165, 35) + SourceIndex(0) -5 >Emitted(109, 23) Source(165, 44) + SourceIndex(0) -6 >Emitted(109, 24) Source(165, 45) + SourceIndex(0) -7 >Emitted(109, 28) Source(165, 49) + SourceIndex(0) -8 >Emitted(109, 34) Source(165, 55) + SourceIndex(0) -9 >Emitted(109, 35) Source(165, 62) + SourceIndex(0) -10>Emitted(109, 36) Source(165, 63) + SourceIndex(0) -11>Emitted(109, 38) Source(165, 65) + SourceIndex(0) -12>Emitted(109, 39) Source(165, 66) + SourceIndex(0) -13>Emitted(109, 40) Source(165, 66) + SourceIndex(0) -14>Emitted(109, 41) Source(165, 67) + SourceIndex(0) -15>Emitted(109, 42) Source(165, 68) + SourceIndex(0) -16>Emitted(109, 43) Source(165, 69) + SourceIndex(0) +1->Emitted(108, 1) Source(165, 1) + SourceIndex(0) +2 >Emitted(108, 5) Source(165, 5) + SourceIndex(0) +3 >Emitted(108, 10) Source(165, 10) + SourceIndex(0) +4 >Emitted(108, 13) Source(165, 35) + SourceIndex(0) +5 >Emitted(108, 23) Source(165, 44) + SourceIndex(0) +6 >Emitted(108, 24) Source(165, 45) + SourceIndex(0) +7 >Emitted(108, 28) Source(165, 49) + SourceIndex(0) +8 >Emitted(108, 34) Source(165, 55) + SourceIndex(0) +9 >Emitted(108, 35) Source(165, 62) + SourceIndex(0) +10>Emitted(108, 36) Source(165, 63) + SourceIndex(0) +11>Emitted(108, 38) Source(165, 65) + SourceIndex(0) +12>Emitted(108, 39) Source(165, 66) + SourceIndex(0) +13>Emitted(108, 40) Source(165, 66) + SourceIndex(0) +14>Emitted(108, 41) Source(165, 67) + SourceIndex(0) +15>Emitted(108, 42) Source(165, 68) + SourceIndex(0) +16>Emitted(108, 43) Source(165, 69) + SourceIndex(0) --- >>>var c12t6 = function (n, s) { return ({}); }; 1-> @@ -2724,24 +2713,24 @@ sourceFile:contextualTyping.ts 16> 17> } 18> ; -1->Emitted(110, 1) Source(166, 1) + SourceIndex(0) -2 >Emitted(110, 5) Source(166, 5) + SourceIndex(0) -3 >Emitted(110, 10) Source(166, 10) + SourceIndex(0) -4 >Emitted(110, 13) Source(166, 46) + SourceIndex(0) -5 >Emitted(110, 23) Source(166, 55) + SourceIndex(0) -6 >Emitted(110, 24) Source(166, 56) + SourceIndex(0) -7 >Emitted(110, 26) Source(166, 58) + SourceIndex(0) -8 >Emitted(110, 27) Source(166, 59) + SourceIndex(0) -9 >Emitted(110, 31) Source(166, 63) + SourceIndex(0) -10>Emitted(110, 37) Source(166, 69) + SourceIndex(0) -11>Emitted(110, 38) Source(166, 76) + SourceIndex(0) -12>Emitted(110, 39) Source(166, 77) + SourceIndex(0) -13>Emitted(110, 41) Source(166, 79) + SourceIndex(0) -14>Emitted(110, 42) Source(166, 80) + SourceIndex(0) -15>Emitted(110, 43) Source(166, 80) + SourceIndex(0) -16>Emitted(110, 44) Source(166, 81) + SourceIndex(0) -17>Emitted(110, 45) Source(166, 82) + SourceIndex(0) -18>Emitted(110, 46) Source(166, 83) + SourceIndex(0) +1->Emitted(109, 1) Source(166, 1) + SourceIndex(0) +2 >Emitted(109, 5) Source(166, 5) + SourceIndex(0) +3 >Emitted(109, 10) Source(166, 10) + SourceIndex(0) +4 >Emitted(109, 13) Source(166, 46) + SourceIndex(0) +5 >Emitted(109, 23) Source(166, 55) + SourceIndex(0) +6 >Emitted(109, 24) Source(166, 56) + SourceIndex(0) +7 >Emitted(109, 26) Source(166, 58) + SourceIndex(0) +8 >Emitted(109, 27) Source(166, 59) + SourceIndex(0) +9 >Emitted(109, 31) Source(166, 63) + SourceIndex(0) +10>Emitted(109, 37) Source(166, 69) + SourceIndex(0) +11>Emitted(109, 38) Source(166, 76) + SourceIndex(0) +12>Emitted(109, 39) Source(166, 77) + SourceIndex(0) +13>Emitted(109, 41) Source(166, 79) + SourceIndex(0) +14>Emitted(109, 42) Source(166, 80) + SourceIndex(0) +15>Emitted(109, 43) Source(166, 80) + SourceIndex(0) +16>Emitted(109, 44) Source(166, 81) + SourceIndex(0) +17>Emitted(109, 45) Source(166, 82) + SourceIndex(0) +18>Emitted(109, 46) Source(166, 83) + SourceIndex(0) --- >>>var c12t7 = function (n) { return n; }; 1 > @@ -2777,20 +2766,20 @@ sourceFile:contextualTyping.ts 12> 13> } 14> ; -1 >Emitted(111, 1) Source(167, 1) + SourceIndex(0) -2 >Emitted(111, 5) Source(167, 5) + SourceIndex(0) -3 >Emitted(111, 10) Source(167, 10) + SourceIndex(0) -4 >Emitted(111, 13) Source(170, 4) + SourceIndex(0) -5 >Emitted(111, 23) Source(170, 13) + SourceIndex(0) -6 >Emitted(111, 24) Source(170, 21) + SourceIndex(0) -7 >Emitted(111, 28) Source(170, 25) + SourceIndex(0) -8 >Emitted(111, 34) Source(170, 31) + SourceIndex(0) -9 >Emitted(111, 35) Source(170, 32) + SourceIndex(0) -10>Emitted(111, 36) Source(170, 33) + SourceIndex(0) -11>Emitted(111, 37) Source(170, 33) + SourceIndex(0) -12>Emitted(111, 38) Source(170, 34) + SourceIndex(0) -13>Emitted(111, 39) Source(170, 35) + SourceIndex(0) -14>Emitted(111, 40) Source(170, 36) + SourceIndex(0) +1 >Emitted(110, 1) Source(167, 1) + SourceIndex(0) +2 >Emitted(110, 5) Source(167, 5) + SourceIndex(0) +3 >Emitted(110, 10) Source(167, 10) + SourceIndex(0) +4 >Emitted(110, 13) Source(170, 4) + SourceIndex(0) +5 >Emitted(110, 23) Source(170, 13) + SourceIndex(0) +6 >Emitted(110, 24) Source(170, 21) + SourceIndex(0) +7 >Emitted(110, 28) Source(170, 25) + SourceIndex(0) +8 >Emitted(110, 34) Source(170, 31) + SourceIndex(0) +9 >Emitted(110, 35) Source(170, 32) + SourceIndex(0) +10>Emitted(110, 36) Source(170, 33) + SourceIndex(0) +11>Emitted(110, 37) Source(170, 33) + SourceIndex(0) +12>Emitted(110, 38) Source(170, 34) + SourceIndex(0) +13>Emitted(110, 39) Source(170, 35) + SourceIndex(0) +14>Emitted(110, 40) Source(170, 36) + SourceIndex(0) --- >>>var c12t8 = function (n) { return n; }; 1-> @@ -2823,20 +2812,20 @@ sourceFile:contextualTyping.ts 12> 13> } 14> ; -1->Emitted(112, 1) Source(172, 1) + SourceIndex(0) -2 >Emitted(112, 5) Source(172, 5) + SourceIndex(0) -3 >Emitted(112, 10) Source(172, 10) + SourceIndex(0) -4 >Emitted(112, 13) Source(172, 48) + SourceIndex(0) -5 >Emitted(112, 23) Source(172, 57) + SourceIndex(0) -6 >Emitted(112, 24) Source(172, 58) + SourceIndex(0) -7 >Emitted(112, 28) Source(172, 62) + SourceIndex(0) -8 >Emitted(112, 34) Source(172, 68) + SourceIndex(0) -9 >Emitted(112, 35) Source(172, 69) + SourceIndex(0) -10>Emitted(112, 36) Source(172, 70) + SourceIndex(0) -11>Emitted(112, 37) Source(172, 71) + SourceIndex(0) -12>Emitted(112, 38) Source(172, 72) + SourceIndex(0) -13>Emitted(112, 39) Source(172, 73) + SourceIndex(0) -14>Emitted(112, 40) Source(172, 74) + SourceIndex(0) +1->Emitted(111, 1) Source(172, 1) + SourceIndex(0) +2 >Emitted(111, 5) Source(172, 5) + SourceIndex(0) +3 >Emitted(111, 10) Source(172, 10) + SourceIndex(0) +4 >Emitted(111, 13) Source(172, 48) + SourceIndex(0) +5 >Emitted(111, 23) Source(172, 57) + SourceIndex(0) +6 >Emitted(111, 24) Source(172, 58) + SourceIndex(0) +7 >Emitted(111, 28) Source(172, 62) + SourceIndex(0) +8 >Emitted(111, 34) Source(172, 68) + SourceIndex(0) +9 >Emitted(111, 35) Source(172, 69) + SourceIndex(0) +10>Emitted(111, 36) Source(172, 70) + SourceIndex(0) +11>Emitted(111, 37) Source(172, 71) + SourceIndex(0) +12>Emitted(111, 38) Source(172, 72) + SourceIndex(0) +13>Emitted(111, 39) Source(172, 73) + SourceIndex(0) +14>Emitted(111, 40) Source(172, 74) + SourceIndex(0) --- >>>var c12t9 = [[], []]; 1 > @@ -2861,16 +2850,16 @@ sourceFile:contextualTyping.ts 8 > [] 9 > ] 10> ; -1 >Emitted(113, 1) Source(173, 1) + SourceIndex(0) -2 >Emitted(113, 5) Source(173, 5) + SourceIndex(0) -3 >Emitted(113, 10) Source(173, 10) + SourceIndex(0) -4 >Emitted(113, 13) Source(173, 26) + SourceIndex(0) -5 >Emitted(113, 14) Source(173, 27) + SourceIndex(0) -6 >Emitted(113, 16) Source(173, 29) + SourceIndex(0) -7 >Emitted(113, 18) Source(173, 30) + SourceIndex(0) -8 >Emitted(113, 20) Source(173, 32) + SourceIndex(0) -9 >Emitted(113, 21) Source(173, 33) + SourceIndex(0) -10>Emitted(113, 22) Source(173, 34) + SourceIndex(0) +1 >Emitted(112, 1) Source(173, 1) + SourceIndex(0) +2 >Emitted(112, 5) Source(173, 5) + SourceIndex(0) +3 >Emitted(112, 10) Source(173, 10) + SourceIndex(0) +4 >Emitted(112, 13) Source(173, 26) + SourceIndex(0) +5 >Emitted(112, 14) Source(173, 27) + SourceIndex(0) +6 >Emitted(112, 16) Source(173, 29) + SourceIndex(0) +7 >Emitted(112, 18) Source(173, 30) + SourceIndex(0) +8 >Emitted(112, 20) Source(173, 32) + SourceIndex(0) +9 >Emitted(112, 21) Source(173, 33) + SourceIndex(0) +10>Emitted(112, 22) Source(173, 34) + SourceIndex(0) --- >>>var c12t10 = [({}), ({})]; 1-> @@ -2903,20 +2892,20 @@ sourceFile:contextualTyping.ts 12> ) 13> ] 14> ; -1->Emitted(114, 1) Source(174, 1) + SourceIndex(0) -2 >Emitted(114, 5) Source(174, 5) + SourceIndex(0) -3 >Emitted(114, 11) Source(174, 11) + SourceIndex(0) -4 >Emitted(114, 14) Source(174, 23) + SourceIndex(0) -5 >Emitted(114, 15) Source(174, 30) + SourceIndex(0) -6 >Emitted(114, 16) Source(174, 31) + SourceIndex(0) -7 >Emitted(114, 18) Source(174, 33) + SourceIndex(0) -8 >Emitted(114, 19) Source(174, 34) + SourceIndex(0) -9 >Emitted(114, 21) Source(174, 41) + SourceIndex(0) -10>Emitted(114, 22) Source(174, 42) + SourceIndex(0) -11>Emitted(114, 24) Source(174, 44) + SourceIndex(0) -12>Emitted(114, 25) Source(174, 45) + SourceIndex(0) -13>Emitted(114, 26) Source(174, 46) + SourceIndex(0) -14>Emitted(114, 27) Source(174, 47) + SourceIndex(0) +1->Emitted(113, 1) Source(174, 1) + SourceIndex(0) +2 >Emitted(113, 5) Source(174, 5) + SourceIndex(0) +3 >Emitted(113, 11) Source(174, 11) + SourceIndex(0) +4 >Emitted(113, 14) Source(174, 23) + SourceIndex(0) +5 >Emitted(113, 15) Source(174, 30) + SourceIndex(0) +6 >Emitted(113, 16) Source(174, 31) + SourceIndex(0) +7 >Emitted(113, 18) Source(174, 33) + SourceIndex(0) +8 >Emitted(113, 19) Source(174, 34) + SourceIndex(0) +9 >Emitted(113, 21) Source(174, 41) + SourceIndex(0) +10>Emitted(113, 22) Source(174, 42) + SourceIndex(0) +11>Emitted(113, 24) Source(174, 44) + SourceIndex(0) +12>Emitted(113, 25) Source(174, 45) + SourceIndex(0) +13>Emitted(113, 26) Source(174, 46) + SourceIndex(0) +14>Emitted(113, 27) Source(174, 47) + SourceIndex(0) --- >>>var c12t11 = [function (n, s) { return s; }]; 1-> @@ -2956,24 +2945,24 @@ sourceFile:contextualTyping.ts 16> } 17> ] 18> ; -1->Emitted(115, 1) Source(175, 1) + SourceIndex(0) -2 >Emitted(115, 5) Source(175, 5) + SourceIndex(0) -3 >Emitted(115, 11) Source(175, 11) + SourceIndex(0) -4 >Emitted(115, 14) Source(175, 52) + SourceIndex(0) -5 >Emitted(115, 15) Source(175, 53) + SourceIndex(0) -6 >Emitted(115, 25) Source(175, 62) + SourceIndex(0) -7 >Emitted(115, 26) Source(175, 63) + SourceIndex(0) -8 >Emitted(115, 28) Source(175, 65) + SourceIndex(0) -9 >Emitted(115, 29) Source(175, 66) + SourceIndex(0) -10>Emitted(115, 33) Source(175, 70) + SourceIndex(0) -11>Emitted(115, 39) Source(175, 76) + SourceIndex(0) -12>Emitted(115, 40) Source(175, 77) + SourceIndex(0) -13>Emitted(115, 41) Source(175, 78) + SourceIndex(0) -14>Emitted(115, 42) Source(175, 79) + SourceIndex(0) -15>Emitted(115, 43) Source(175, 80) + SourceIndex(0) -16>Emitted(115, 44) Source(175, 81) + SourceIndex(0) -17>Emitted(115, 45) Source(175, 82) + SourceIndex(0) -18>Emitted(115, 46) Source(175, 83) + SourceIndex(0) +1->Emitted(114, 1) Source(175, 1) + SourceIndex(0) +2 >Emitted(114, 5) Source(175, 5) + SourceIndex(0) +3 >Emitted(114, 11) Source(175, 11) + SourceIndex(0) +4 >Emitted(114, 14) Source(175, 52) + SourceIndex(0) +5 >Emitted(114, 15) Source(175, 53) + SourceIndex(0) +6 >Emitted(114, 25) Source(175, 62) + SourceIndex(0) +7 >Emitted(114, 26) Source(175, 63) + SourceIndex(0) +8 >Emitted(114, 28) Source(175, 65) + SourceIndex(0) +9 >Emitted(114, 29) Source(175, 66) + SourceIndex(0) +10>Emitted(114, 33) Source(175, 70) + SourceIndex(0) +11>Emitted(114, 39) Source(175, 76) + SourceIndex(0) +12>Emitted(114, 40) Source(175, 77) + SourceIndex(0) +13>Emitted(114, 41) Source(175, 78) + SourceIndex(0) +14>Emitted(114, 42) Source(175, 79) + SourceIndex(0) +15>Emitted(114, 43) Source(175, 80) + SourceIndex(0) +16>Emitted(114, 44) Source(175, 81) + SourceIndex(0) +17>Emitted(114, 45) Source(175, 82) + SourceIndex(0) +18>Emitted(114, 46) Source(175, 83) + SourceIndex(0) --- >>>var c12t12 = { 1 > @@ -2986,10 +2975,10 @@ sourceFile:contextualTyping.ts 2 >var 3 > c12t12 4 > = -1 >Emitted(116, 1) Source(176, 1) + SourceIndex(0) -2 >Emitted(116, 5) Source(176, 5) + SourceIndex(0) -3 >Emitted(116, 11) Source(176, 11) + SourceIndex(0) -4 >Emitted(116, 14) Source(176, 21) + SourceIndex(0) +1 >Emitted(115, 1) Source(176, 1) + SourceIndex(0) +2 >Emitted(115, 5) Source(176, 5) + SourceIndex(0) +3 >Emitted(115, 11) Source(176, 11) + SourceIndex(0) +4 >Emitted(115, 14) Source(176, 21) + SourceIndex(0) --- >>> foo: ({}) 1->^^^^ @@ -3005,12 +2994,12 @@ sourceFile:contextualTyping.ts 4 > ( 5 > {} 6 > ) -1->Emitted(117, 5) Source(177, 5) + SourceIndex(0) -2 >Emitted(117, 8) Source(177, 8) + SourceIndex(0) -3 >Emitted(117, 10) Source(177, 16) + SourceIndex(0) -4 >Emitted(117, 11) Source(177, 17) + SourceIndex(0) -5 >Emitted(117, 13) Source(177, 19) + SourceIndex(0) -6 >Emitted(117, 14) Source(177, 20) + SourceIndex(0) +1->Emitted(116, 5) Source(177, 5) + SourceIndex(0) +2 >Emitted(116, 8) Source(177, 8) + SourceIndex(0) +3 >Emitted(116, 10) Source(177, 16) + SourceIndex(0) +4 >Emitted(116, 11) Source(177, 17) + SourceIndex(0) +5 >Emitted(116, 13) Source(177, 19) + SourceIndex(0) +6 >Emitted(116, 14) Source(177, 20) + SourceIndex(0) --- >>>}; 1 >^ @@ -3019,8 +3008,8 @@ sourceFile:contextualTyping.ts 1 > >} 2 > -1 >Emitted(118, 2) Source(178, 2) + SourceIndex(0) -2 >Emitted(118, 3) Source(178, 2) + SourceIndex(0) +1 >Emitted(117, 2) Source(178, 2) + SourceIndex(0) +2 >Emitted(117, 3) Source(178, 2) + SourceIndex(0) --- >>>var c12t13 = ({ 1-> @@ -3035,11 +3024,11 @@ sourceFile:contextualTyping.ts 3 > c12t13 4 > = 5 > ( -1->Emitted(119, 1) Source(179, 1) + SourceIndex(0) -2 >Emitted(119, 5) Source(179, 5) + SourceIndex(0) -3 >Emitted(119, 11) Source(179, 11) + SourceIndex(0) -4 >Emitted(119, 14) Source(179, 21) + SourceIndex(0) -5 >Emitted(119, 15) Source(179, 22) + SourceIndex(0) +1->Emitted(118, 1) Source(179, 1) + SourceIndex(0) +2 >Emitted(118, 5) Source(179, 5) + SourceIndex(0) +3 >Emitted(118, 11) Source(179, 11) + SourceIndex(0) +4 >Emitted(118, 14) Source(179, 21) + SourceIndex(0) +5 >Emitted(118, 15) Source(179, 22) + SourceIndex(0) --- >>> f: function (i, s) { return s; } 1->^^^^ @@ -3071,20 +3060,20 @@ sourceFile:contextualTyping.ts 12> ; 13> 14> } -1->Emitted(120, 5) Source(180, 5) + SourceIndex(0) -2 >Emitted(120, 6) Source(180, 6) + SourceIndex(0) -3 >Emitted(120, 8) Source(180, 8) + SourceIndex(0) -4 >Emitted(120, 18) Source(180, 17) + SourceIndex(0) -5 >Emitted(120, 19) Source(180, 18) + SourceIndex(0) -6 >Emitted(120, 21) Source(180, 20) + SourceIndex(0) -7 >Emitted(120, 22) Source(180, 21) + SourceIndex(0) -8 >Emitted(120, 26) Source(180, 25) + SourceIndex(0) -9 >Emitted(120, 32) Source(180, 31) + SourceIndex(0) -10>Emitted(120, 33) Source(180, 32) + SourceIndex(0) -11>Emitted(120, 34) Source(180, 33) + SourceIndex(0) -12>Emitted(120, 35) Source(180, 34) + SourceIndex(0) -13>Emitted(120, 36) Source(180, 35) + SourceIndex(0) -14>Emitted(120, 37) Source(180, 36) + SourceIndex(0) +1->Emitted(119, 5) Source(180, 5) + SourceIndex(0) +2 >Emitted(119, 6) Source(180, 6) + SourceIndex(0) +3 >Emitted(119, 8) Source(180, 8) + SourceIndex(0) +4 >Emitted(119, 18) Source(180, 17) + SourceIndex(0) +5 >Emitted(119, 19) Source(180, 18) + SourceIndex(0) +6 >Emitted(119, 21) Source(180, 20) + SourceIndex(0) +7 >Emitted(119, 22) Source(180, 21) + SourceIndex(0) +8 >Emitted(119, 26) Source(180, 25) + SourceIndex(0) +9 >Emitted(119, 32) Source(180, 31) + SourceIndex(0) +10>Emitted(119, 33) Source(180, 32) + SourceIndex(0) +11>Emitted(119, 34) Source(180, 33) + SourceIndex(0) +12>Emitted(119, 35) Source(180, 34) + SourceIndex(0) +13>Emitted(119, 36) Source(180, 35) + SourceIndex(0) +14>Emitted(119, 37) Source(180, 36) + SourceIndex(0) --- >>>}); 1 >^ @@ -3095,9 +3084,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > -1 >Emitted(121, 2) Source(181, 2) + SourceIndex(0) -2 >Emitted(121, 3) Source(181, 3) + SourceIndex(0) -3 >Emitted(121, 4) Source(181, 3) + SourceIndex(0) +1 >Emitted(120, 2) Source(181, 2) + SourceIndex(0) +2 >Emitted(120, 3) Source(181, 3) + SourceIndex(0) +3 >Emitted(120, 4) Source(181, 3) + SourceIndex(0) --- >>>var c12t14 = ({ 1-> @@ -3111,11 +3100,11 @@ sourceFile:contextualTyping.ts 3 > c12t14 4 > = 5 > ( -1->Emitted(122, 1) Source(182, 1) + SourceIndex(0) -2 >Emitted(122, 5) Source(182, 5) + SourceIndex(0) -3 >Emitted(122, 11) Source(182, 11) + SourceIndex(0) -4 >Emitted(122, 14) Source(182, 21) + SourceIndex(0) -5 >Emitted(122, 15) Source(182, 22) + SourceIndex(0) +1->Emitted(121, 1) Source(182, 1) + SourceIndex(0) +2 >Emitted(121, 5) Source(182, 5) + SourceIndex(0) +3 >Emitted(121, 11) Source(182, 11) + SourceIndex(0) +4 >Emitted(121, 14) Source(182, 21) + SourceIndex(0) +5 >Emitted(121, 15) Source(182, 22) + SourceIndex(0) --- >>> a: [] 1 >^^^^ @@ -3127,10 +3116,10 @@ sourceFile:contextualTyping.ts 2 > a 3 > : 4 > [] -1 >Emitted(123, 5) Source(183, 5) + SourceIndex(0) -2 >Emitted(123, 6) Source(183, 6) + SourceIndex(0) -3 >Emitted(123, 8) Source(183, 8) + SourceIndex(0) -4 >Emitted(123, 10) Source(183, 10) + SourceIndex(0) +1 >Emitted(122, 5) Source(183, 5) + SourceIndex(0) +2 >Emitted(122, 6) Source(183, 6) + SourceIndex(0) +3 >Emitted(122, 8) Source(183, 8) + SourceIndex(0) +4 >Emitted(122, 10) Source(183, 10) + SourceIndex(0) --- >>>}); 1 >^ @@ -3141,9 +3130,9 @@ sourceFile:contextualTyping.ts >} 2 > ) 3 > -1 >Emitted(124, 2) Source(184, 2) + SourceIndex(0) -2 >Emitted(124, 3) Source(184, 3) + SourceIndex(0) -3 >Emitted(124, 4) Source(184, 3) + SourceIndex(0) +1 >Emitted(123, 2) Source(184, 2) + SourceIndex(0) +2 >Emitted(123, 3) Source(184, 3) + SourceIndex(0) +3 >Emitted(123, 4) Source(184, 3) + SourceIndex(0) --- >>>function EF1(a, b) { return a + b; } 1-> @@ -3181,20 +3170,20 @@ sourceFile:contextualTyping.ts 12> ; 13> 14> } -1->Emitted(125, 1) Source(191, 1) + SourceIndex(0) -2 >Emitted(125, 14) Source(191, 14) + SourceIndex(0) -3 >Emitted(125, 15) Source(191, 15) + SourceIndex(0) -4 >Emitted(125, 17) Source(191, 16) + SourceIndex(0) -5 >Emitted(125, 18) Source(191, 17) + SourceIndex(0) -6 >Emitted(125, 22) Source(191, 21) + SourceIndex(0) name (EF1) -7 >Emitted(125, 28) Source(191, 27) + SourceIndex(0) name (EF1) -8 >Emitted(125, 29) Source(191, 28) + SourceIndex(0) name (EF1) -9 >Emitted(125, 30) Source(191, 29) + SourceIndex(0) name (EF1) -10>Emitted(125, 33) Source(191, 30) + SourceIndex(0) name (EF1) -11>Emitted(125, 34) Source(191, 31) + SourceIndex(0) name (EF1) -12>Emitted(125, 35) Source(191, 32) + SourceIndex(0) name (EF1) -13>Emitted(125, 36) Source(191, 33) + SourceIndex(0) name (EF1) -14>Emitted(125, 37) Source(191, 34) + SourceIndex(0) name (EF1) +1->Emitted(124, 1) Source(191, 1) + SourceIndex(0) +2 >Emitted(124, 14) Source(191, 14) + SourceIndex(0) +3 >Emitted(124, 15) Source(191, 15) + SourceIndex(0) +4 >Emitted(124, 17) Source(191, 16) + SourceIndex(0) +5 >Emitted(124, 18) Source(191, 17) + SourceIndex(0) +6 >Emitted(124, 22) Source(191, 21) + SourceIndex(0) name (EF1) +7 >Emitted(124, 28) Source(191, 27) + SourceIndex(0) name (EF1) +8 >Emitted(124, 29) Source(191, 28) + SourceIndex(0) name (EF1) +9 >Emitted(124, 30) Source(191, 29) + SourceIndex(0) name (EF1) +10>Emitted(124, 33) Source(191, 30) + SourceIndex(0) name (EF1) +11>Emitted(124, 34) Source(191, 31) + SourceIndex(0) name (EF1) +12>Emitted(124, 35) Source(191, 32) + SourceIndex(0) name (EF1) +13>Emitted(124, 36) Source(191, 33) + SourceIndex(0) name (EF1) +14>Emitted(124, 37) Source(191, 34) + SourceIndex(0) name (EF1) --- >>>var efv = EF1(1, 2); 1 > @@ -3222,17 +3211,17 @@ sourceFile:contextualTyping.ts 9 > 2 10> ) 11> ; -1 >Emitted(126, 1) Source(193, 1) + SourceIndex(0) -2 >Emitted(126, 5) Source(193, 5) + SourceIndex(0) -3 >Emitted(126, 8) Source(193, 8) + SourceIndex(0) -4 >Emitted(126, 11) Source(193, 11) + SourceIndex(0) -5 >Emitted(126, 14) Source(193, 14) + SourceIndex(0) -6 >Emitted(126, 15) Source(193, 15) + SourceIndex(0) -7 >Emitted(126, 16) Source(193, 16) + SourceIndex(0) -8 >Emitted(126, 18) Source(193, 17) + SourceIndex(0) -9 >Emitted(126, 19) Source(193, 18) + SourceIndex(0) -10>Emitted(126, 20) Source(193, 19) + SourceIndex(0) -11>Emitted(126, 21) Source(193, 20) + SourceIndex(0) +1 >Emitted(125, 1) Source(193, 1) + SourceIndex(0) +2 >Emitted(125, 5) Source(193, 5) + SourceIndex(0) +3 >Emitted(125, 8) Source(193, 8) + SourceIndex(0) +4 >Emitted(125, 11) Source(193, 11) + SourceIndex(0) +5 >Emitted(125, 14) Source(193, 14) + SourceIndex(0) +6 >Emitted(125, 15) Source(193, 15) + SourceIndex(0) +7 >Emitted(125, 16) Source(193, 16) + SourceIndex(0) +8 >Emitted(125, 18) Source(193, 17) + SourceIndex(0) +9 >Emitted(125, 19) Source(193, 18) + SourceIndex(0) +10>Emitted(125, 20) Source(193, 19) + SourceIndex(0) +11>Emitted(125, 21) Source(193, 20) + SourceIndex(0) --- >>>function Point(x, y) { 1-> @@ -3259,11 +3248,11 @@ sourceFile:contextualTyping.ts 3 > x 4 > , 5 > y -1->Emitted(127, 1) Source(207, 1) + SourceIndex(0) -2 >Emitted(127, 16) Source(207, 16) + SourceIndex(0) -3 >Emitted(127, 17) Source(207, 17) + SourceIndex(0) -4 >Emitted(127, 19) Source(207, 19) + SourceIndex(0) -5 >Emitted(127, 20) Source(207, 20) + SourceIndex(0) +1->Emitted(126, 1) Source(207, 1) + SourceIndex(0) +2 >Emitted(126, 16) Source(207, 16) + SourceIndex(0) +3 >Emitted(126, 17) Source(207, 17) + SourceIndex(0) +4 >Emitted(126, 19) Source(207, 19) + SourceIndex(0) +5 >Emitted(126, 20) Source(207, 20) + SourceIndex(0) --- >>> this.x = x; 1 >^^^^ @@ -3282,13 +3271,13 @@ sourceFile:contextualTyping.ts 5 > = 6 > x 7 > ; -1 >Emitted(128, 5) Source(208, 5) + SourceIndex(0) name (Point) -2 >Emitted(128, 9) Source(208, 9) + SourceIndex(0) name (Point) -3 >Emitted(128, 10) Source(208, 10) + SourceIndex(0) name (Point) -4 >Emitted(128, 11) Source(208, 11) + SourceIndex(0) name (Point) -5 >Emitted(128, 14) Source(208, 14) + SourceIndex(0) name (Point) -6 >Emitted(128, 15) Source(208, 15) + SourceIndex(0) name (Point) -7 >Emitted(128, 16) Source(208, 16) + SourceIndex(0) name (Point) +1 >Emitted(127, 5) Source(208, 5) + SourceIndex(0) name (Point) +2 >Emitted(127, 9) Source(208, 9) + SourceIndex(0) name (Point) +3 >Emitted(127, 10) Source(208, 10) + SourceIndex(0) name (Point) +4 >Emitted(127, 11) Source(208, 11) + SourceIndex(0) name (Point) +5 >Emitted(127, 14) Source(208, 14) + SourceIndex(0) name (Point) +6 >Emitted(127, 15) Source(208, 15) + SourceIndex(0) name (Point) +7 >Emitted(127, 16) Source(208, 16) + SourceIndex(0) name (Point) --- >>> this.y = y; 1->^^^^ @@ -3307,13 +3296,13 @@ sourceFile:contextualTyping.ts 5 > = 6 > y 7 > ; -1->Emitted(129, 5) Source(209, 5) + SourceIndex(0) name (Point) -2 >Emitted(129, 9) Source(209, 9) + SourceIndex(0) name (Point) -3 >Emitted(129, 10) Source(209, 10) + SourceIndex(0) name (Point) -4 >Emitted(129, 11) Source(209, 11) + SourceIndex(0) name (Point) -5 >Emitted(129, 14) Source(209, 14) + SourceIndex(0) name (Point) -6 >Emitted(129, 15) Source(209, 15) + SourceIndex(0) name (Point) -7 >Emitted(129, 16) Source(209, 16) + SourceIndex(0) name (Point) +1->Emitted(128, 5) Source(209, 5) + SourceIndex(0) name (Point) +2 >Emitted(128, 9) Source(209, 9) + SourceIndex(0) name (Point) +3 >Emitted(128, 10) Source(209, 10) + SourceIndex(0) name (Point) +4 >Emitted(128, 11) Source(209, 11) + SourceIndex(0) name (Point) +5 >Emitted(128, 14) Source(209, 14) + SourceIndex(0) name (Point) +6 >Emitted(128, 15) Source(209, 15) + SourceIndex(0) name (Point) +7 >Emitted(128, 16) Source(209, 16) + SourceIndex(0) name (Point) --- >>> return this; 1->^^^^ @@ -3328,11 +3317,11 @@ sourceFile:contextualTyping.ts 3 > 4 > this 5 > ; -1->Emitted(130, 5) Source(211, 5) + SourceIndex(0) name (Point) -2 >Emitted(130, 11) Source(211, 11) + SourceIndex(0) name (Point) -3 >Emitted(130, 12) Source(211, 12) + SourceIndex(0) name (Point) -4 >Emitted(130, 16) Source(211, 16) + SourceIndex(0) name (Point) -5 >Emitted(130, 17) Source(211, 17) + SourceIndex(0) name (Point) +1->Emitted(129, 5) Source(211, 5) + SourceIndex(0) name (Point) +2 >Emitted(129, 11) Source(211, 11) + SourceIndex(0) name (Point) +3 >Emitted(129, 12) Source(211, 12) + SourceIndex(0) name (Point) +4 >Emitted(129, 16) Source(211, 16) + SourceIndex(0) name (Point) +5 >Emitted(129, 17) Source(211, 17) + SourceIndex(0) name (Point) --- >>>} 1 > @@ -3341,8 +3330,8 @@ sourceFile:contextualTyping.ts 1 > > 2 >} -1 >Emitted(131, 1) Source(212, 1) + SourceIndex(0) name (Point) -2 >Emitted(131, 2) Source(212, 2) + SourceIndex(0) name (Point) +1 >Emitted(130, 1) Source(212, 1) + SourceIndex(0) name (Point) +2 >Emitted(130, 2) Source(212, 2) + SourceIndex(0) name (Point) --- >>>Point.origin = new Point(0, 0); 1-> @@ -3374,19 +3363,19 @@ sourceFile:contextualTyping.ts 11> 0 12> ) 13> ; -1->Emitted(132, 1) Source(214, 1) + SourceIndex(0) -2 >Emitted(132, 6) Source(214, 6) + SourceIndex(0) -3 >Emitted(132, 7) Source(214, 7) + SourceIndex(0) -4 >Emitted(132, 13) Source(214, 13) + SourceIndex(0) -5 >Emitted(132, 16) Source(214, 16) + SourceIndex(0) -6 >Emitted(132, 20) Source(214, 20) + SourceIndex(0) -7 >Emitted(132, 25) Source(214, 25) + SourceIndex(0) -8 >Emitted(132, 26) Source(214, 26) + SourceIndex(0) -9 >Emitted(132, 27) Source(214, 27) + SourceIndex(0) -10>Emitted(132, 29) Source(214, 29) + SourceIndex(0) -11>Emitted(132, 30) Source(214, 30) + SourceIndex(0) -12>Emitted(132, 31) Source(214, 31) + SourceIndex(0) -13>Emitted(132, 32) Source(214, 32) + SourceIndex(0) +1->Emitted(131, 1) Source(214, 1) + SourceIndex(0) +2 >Emitted(131, 6) Source(214, 6) + SourceIndex(0) +3 >Emitted(131, 7) Source(214, 7) + SourceIndex(0) +4 >Emitted(131, 13) Source(214, 13) + SourceIndex(0) +5 >Emitted(131, 16) Source(214, 16) + SourceIndex(0) +6 >Emitted(131, 20) Source(214, 20) + SourceIndex(0) +7 >Emitted(131, 25) Source(214, 25) + SourceIndex(0) +8 >Emitted(131, 26) Source(214, 26) + SourceIndex(0) +9 >Emitted(131, 27) Source(214, 27) + SourceIndex(0) +10>Emitted(131, 29) Source(214, 29) + SourceIndex(0) +11>Emitted(131, 30) Source(214, 30) + SourceIndex(0) +12>Emitted(131, 31) Source(214, 31) + SourceIndex(0) +13>Emitted(131, 32) Source(214, 32) + SourceIndex(0) --- >>>Point.prototype.add = function (dx, dy) { 1-> @@ -3414,17 +3403,17 @@ sourceFile:contextualTyping.ts 9 > dx 10> , 11> dy -1->Emitted(133, 1) Source(216, 1) + SourceIndex(0) -2 >Emitted(133, 6) Source(216, 6) + SourceIndex(0) -3 >Emitted(133, 7) Source(216, 7) + SourceIndex(0) -4 >Emitted(133, 16) Source(216, 16) + SourceIndex(0) -5 >Emitted(133, 17) Source(216, 17) + SourceIndex(0) -6 >Emitted(133, 20) Source(216, 20) + SourceIndex(0) -7 >Emitted(133, 23) Source(216, 23) + SourceIndex(0) -8 >Emitted(133, 33) Source(216, 32) + SourceIndex(0) -9 >Emitted(133, 35) Source(216, 34) + SourceIndex(0) -10>Emitted(133, 37) Source(216, 36) + SourceIndex(0) -11>Emitted(133, 39) Source(216, 38) + SourceIndex(0) +1->Emitted(132, 1) Source(216, 1) + SourceIndex(0) +2 >Emitted(132, 6) Source(216, 6) + SourceIndex(0) +3 >Emitted(132, 7) Source(216, 7) + SourceIndex(0) +4 >Emitted(132, 16) Source(216, 16) + SourceIndex(0) +5 >Emitted(132, 17) Source(216, 17) + SourceIndex(0) +6 >Emitted(132, 20) Source(216, 20) + SourceIndex(0) +7 >Emitted(132, 23) Source(216, 23) + SourceIndex(0) +8 >Emitted(132, 33) Source(216, 32) + SourceIndex(0) +9 >Emitted(132, 35) Source(216, 34) + SourceIndex(0) +10>Emitted(132, 37) Source(216, 36) + SourceIndex(0) +11>Emitted(132, 39) Source(216, 38) + SourceIndex(0) --- >>> return new Point(this.x + dx, this.y + dy); 1->^^^^ @@ -3466,25 +3455,25 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(134, 5) Source(217, 5) + SourceIndex(0) -2 >Emitted(134, 11) Source(217, 11) + SourceIndex(0) -3 >Emitted(134, 12) Source(217, 12) + SourceIndex(0) -4 >Emitted(134, 16) Source(217, 16) + SourceIndex(0) -5 >Emitted(134, 21) Source(217, 21) + SourceIndex(0) -6 >Emitted(134, 22) Source(217, 22) + SourceIndex(0) -7 >Emitted(134, 26) Source(217, 26) + SourceIndex(0) -8 >Emitted(134, 27) Source(217, 27) + SourceIndex(0) -9 >Emitted(134, 28) Source(217, 28) + SourceIndex(0) -10>Emitted(134, 31) Source(217, 31) + SourceIndex(0) -11>Emitted(134, 33) Source(217, 33) + SourceIndex(0) -12>Emitted(134, 35) Source(217, 35) + SourceIndex(0) -13>Emitted(134, 39) Source(217, 39) + SourceIndex(0) -14>Emitted(134, 40) Source(217, 40) + SourceIndex(0) -15>Emitted(134, 41) Source(217, 41) + SourceIndex(0) -16>Emitted(134, 44) Source(217, 44) + SourceIndex(0) -17>Emitted(134, 46) Source(217, 46) + SourceIndex(0) -18>Emitted(134, 47) Source(217, 47) + SourceIndex(0) -19>Emitted(134, 48) Source(217, 48) + SourceIndex(0) +1->Emitted(133, 5) Source(217, 5) + SourceIndex(0) +2 >Emitted(133, 11) Source(217, 11) + SourceIndex(0) +3 >Emitted(133, 12) Source(217, 12) + SourceIndex(0) +4 >Emitted(133, 16) Source(217, 16) + SourceIndex(0) +5 >Emitted(133, 21) Source(217, 21) + SourceIndex(0) +6 >Emitted(133, 22) Source(217, 22) + SourceIndex(0) +7 >Emitted(133, 26) Source(217, 26) + SourceIndex(0) +8 >Emitted(133, 27) Source(217, 27) + SourceIndex(0) +9 >Emitted(133, 28) Source(217, 28) + SourceIndex(0) +10>Emitted(133, 31) Source(217, 31) + SourceIndex(0) +11>Emitted(133, 33) Source(217, 33) + SourceIndex(0) +12>Emitted(133, 35) Source(217, 35) + SourceIndex(0) +13>Emitted(133, 39) Source(217, 39) + SourceIndex(0) +14>Emitted(133, 40) Source(217, 40) + SourceIndex(0) +15>Emitted(133, 41) Source(217, 41) + SourceIndex(0) +16>Emitted(133, 44) Source(217, 44) + SourceIndex(0) +17>Emitted(133, 46) Source(217, 46) + SourceIndex(0) +18>Emitted(133, 47) Source(217, 47) + SourceIndex(0) +19>Emitted(133, 48) Source(217, 48) + SourceIndex(0) --- >>>}; 1 > @@ -3495,9 +3484,9 @@ sourceFile:contextualTyping.ts > 2 >} 3 > ; -1 >Emitted(135, 1) Source(218, 1) + SourceIndex(0) -2 >Emitted(135, 2) Source(218, 2) + SourceIndex(0) -3 >Emitted(135, 3) Source(218, 3) + SourceIndex(0) +1 >Emitted(134, 1) Source(218, 1) + SourceIndex(0) +2 >Emitted(134, 2) Source(218, 2) + SourceIndex(0) +3 >Emitted(134, 3) Source(218, 3) + SourceIndex(0) --- >>>Point.prototype = { 1-> @@ -3512,11 +3501,11 @@ sourceFile:contextualTyping.ts 3 > . 4 > prototype 5 > = -1->Emitted(136, 1) Source(220, 1) + SourceIndex(0) -2 >Emitted(136, 6) Source(220, 6) + SourceIndex(0) -3 >Emitted(136, 7) Source(220, 7) + SourceIndex(0) -4 >Emitted(136, 16) Source(220, 16) + SourceIndex(0) -5 >Emitted(136, 19) Source(220, 19) + SourceIndex(0) +1->Emitted(135, 1) Source(220, 1) + SourceIndex(0) +2 >Emitted(135, 6) Source(220, 6) + SourceIndex(0) +3 >Emitted(135, 7) Source(220, 7) + SourceIndex(0) +4 >Emitted(135, 16) Source(220, 16) + SourceIndex(0) +5 >Emitted(135, 19) Source(220, 19) + SourceIndex(0) --- >>> x: 0, 1 >^^^^ @@ -3529,10 +3518,10 @@ sourceFile:contextualTyping.ts 2 > x 3 > : 4 > 0 -1 >Emitted(137, 5) Source(221, 5) + SourceIndex(0) -2 >Emitted(137, 6) Source(221, 6) + SourceIndex(0) -3 >Emitted(137, 8) Source(221, 8) + SourceIndex(0) -4 >Emitted(137, 9) Source(221, 9) + SourceIndex(0) +1 >Emitted(136, 5) Source(221, 5) + SourceIndex(0) +2 >Emitted(136, 6) Source(221, 6) + SourceIndex(0) +3 >Emitted(136, 8) Source(221, 8) + SourceIndex(0) +4 >Emitted(136, 9) Source(221, 9) + SourceIndex(0) --- >>> y: 0, 1->^^^^ @@ -3545,10 +3534,10 @@ sourceFile:contextualTyping.ts 2 > y 3 > : 4 > 0 -1->Emitted(138, 5) Source(222, 5) + SourceIndex(0) -2 >Emitted(138, 6) Source(222, 6) + SourceIndex(0) -3 >Emitted(138, 8) Source(222, 8) + SourceIndex(0) -4 >Emitted(138, 9) Source(222, 9) + SourceIndex(0) +1->Emitted(137, 5) Source(222, 5) + SourceIndex(0) +2 >Emitted(137, 6) Source(222, 6) + SourceIndex(0) +3 >Emitted(137, 8) Source(222, 8) + SourceIndex(0) +4 >Emitted(137, 9) Source(222, 9) + SourceIndex(0) --- >>> add: function (dx, dy) { 1->^^^^ @@ -3567,13 +3556,13 @@ sourceFile:contextualTyping.ts 5 > dx 6 > , 7 > dy -1->Emitted(139, 5) Source(223, 5) + SourceIndex(0) -2 >Emitted(139, 8) Source(223, 8) + SourceIndex(0) -3 >Emitted(139, 10) Source(223, 10) + SourceIndex(0) -4 >Emitted(139, 20) Source(223, 19) + SourceIndex(0) -5 >Emitted(139, 22) Source(223, 21) + SourceIndex(0) -6 >Emitted(139, 24) Source(223, 23) + SourceIndex(0) -7 >Emitted(139, 26) Source(223, 25) + SourceIndex(0) +1->Emitted(138, 5) Source(223, 5) + SourceIndex(0) +2 >Emitted(138, 8) Source(223, 8) + SourceIndex(0) +3 >Emitted(138, 10) Source(223, 10) + SourceIndex(0) +4 >Emitted(138, 20) Source(223, 19) + SourceIndex(0) +5 >Emitted(138, 22) Source(223, 21) + SourceIndex(0) +6 >Emitted(138, 24) Source(223, 23) + SourceIndex(0) +7 >Emitted(138, 26) Source(223, 25) + SourceIndex(0) --- >>> return new Point(this.x + dx, this.y + dy); 1->^^^^^^^^ @@ -3615,25 +3604,25 @@ sourceFile:contextualTyping.ts 17> dy 18> ) 19> ; -1->Emitted(140, 9) Source(224, 9) + SourceIndex(0) -2 >Emitted(140, 15) Source(224, 15) + SourceIndex(0) -3 >Emitted(140, 16) Source(224, 16) + SourceIndex(0) -4 >Emitted(140, 20) Source(224, 20) + SourceIndex(0) -5 >Emitted(140, 25) Source(224, 25) + SourceIndex(0) -6 >Emitted(140, 26) Source(224, 26) + SourceIndex(0) -7 >Emitted(140, 30) Source(224, 30) + SourceIndex(0) -8 >Emitted(140, 31) Source(224, 31) + SourceIndex(0) -9 >Emitted(140, 32) Source(224, 32) + SourceIndex(0) -10>Emitted(140, 35) Source(224, 35) + SourceIndex(0) -11>Emitted(140, 37) Source(224, 37) + SourceIndex(0) -12>Emitted(140, 39) Source(224, 39) + SourceIndex(0) -13>Emitted(140, 43) Source(224, 43) + SourceIndex(0) -14>Emitted(140, 44) Source(224, 44) + SourceIndex(0) -15>Emitted(140, 45) Source(224, 45) + SourceIndex(0) -16>Emitted(140, 48) Source(224, 48) + SourceIndex(0) -17>Emitted(140, 50) Source(224, 50) + SourceIndex(0) -18>Emitted(140, 51) Source(224, 51) + SourceIndex(0) -19>Emitted(140, 52) Source(224, 52) + SourceIndex(0) +1->Emitted(139, 9) Source(224, 9) + SourceIndex(0) +2 >Emitted(139, 15) Source(224, 15) + SourceIndex(0) +3 >Emitted(139, 16) Source(224, 16) + SourceIndex(0) +4 >Emitted(139, 20) Source(224, 20) + SourceIndex(0) +5 >Emitted(139, 25) Source(224, 25) + SourceIndex(0) +6 >Emitted(139, 26) Source(224, 26) + SourceIndex(0) +7 >Emitted(139, 30) Source(224, 30) + SourceIndex(0) +8 >Emitted(139, 31) Source(224, 31) + SourceIndex(0) +9 >Emitted(139, 32) Source(224, 32) + SourceIndex(0) +10>Emitted(139, 35) Source(224, 35) + SourceIndex(0) +11>Emitted(139, 37) Source(224, 37) + SourceIndex(0) +12>Emitted(139, 39) Source(224, 39) + SourceIndex(0) +13>Emitted(139, 43) Source(224, 43) + SourceIndex(0) +14>Emitted(139, 44) Source(224, 44) + SourceIndex(0) +15>Emitted(139, 45) Source(224, 45) + SourceIndex(0) +16>Emitted(139, 48) Source(224, 48) + SourceIndex(0) +17>Emitted(139, 50) Source(224, 50) + SourceIndex(0) +18>Emitted(139, 51) Source(224, 51) + SourceIndex(0) +19>Emitted(139, 52) Source(224, 52) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -3641,8 +3630,8 @@ sourceFile:contextualTyping.ts 1 > > 2 > } -1 >Emitted(141, 5) Source(225, 5) + SourceIndex(0) -2 >Emitted(141, 6) Source(225, 6) + SourceIndex(0) +1 >Emitted(140, 5) Source(225, 5) + SourceIndex(0) +2 >Emitted(140, 6) Source(225, 6) + SourceIndex(0) --- >>>}; 1 >^ @@ -3651,8 +3640,8 @@ sourceFile:contextualTyping.ts 1 > >} 2 > ; -1 >Emitted(142, 2) Source(226, 2) + SourceIndex(0) -2 >Emitted(142, 3) Source(226, 3) + SourceIndex(0) +1 >Emitted(141, 2) Source(226, 2) + SourceIndex(0) +2 >Emitted(141, 3) Source(226, 3) + SourceIndex(0) --- >>>var x = {}; 1-> @@ -3672,11 +3661,11 @@ sourceFile:contextualTyping.ts 4 > : B = 5 > { } 6 > ; -1->Emitted(143, 1) Source(230, 1) + SourceIndex(0) -2 >Emitted(143, 5) Source(230, 5) + SourceIndex(0) -3 >Emitted(143, 6) Source(230, 6) + SourceIndex(0) -4 >Emitted(143, 9) Source(230, 12) + SourceIndex(0) -5 >Emitted(143, 11) Source(230, 15) + SourceIndex(0) -6 >Emitted(143, 12) Source(230, 16) + SourceIndex(0) +1->Emitted(142, 1) Source(230, 1) + SourceIndex(0) +2 >Emitted(142, 5) Source(230, 5) + SourceIndex(0) +3 >Emitted(142, 6) Source(230, 6) + SourceIndex(0) +4 >Emitted(142, 9) Source(230, 12) + SourceIndex(0) +5 >Emitted(142, 11) Source(230, 15) + SourceIndex(0) +6 >Emitted(142, 12) Source(230, 16) + SourceIndex(0) --- >>>//# sourceMappingURL=contextualTyping.js.map \ No newline at end of file diff --git a/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js b/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js index 1a175c3483d..a30f0f334c2 100644 --- a/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js +++ b/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js @@ -20,7 +20,6 @@ export var x: SubModule.m.m3.c; //// [declFileAmbientExternalModuleWithSingleExportedModule_0.js] //// [declFileAmbientExternalModuleWithSingleExportedModule_1.js] -exports.x; //// [declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts] diff --git a/tests/baselines/reference/declFileExportAssignmentImportInternalModule.js b/tests/baselines/reference/declFileExportAssignmentImportInternalModule.js index f4cd27e6c01..6bd4320426c 100644 --- a/tests/baselines/reference/declFileExportAssignmentImportInternalModule.js +++ b/tests/baselines/reference/declFileExportAssignmentImportInternalModule.js @@ -24,7 +24,6 @@ export = m; //// [declFileExportAssignmentImportInternalModule.js] var m3; (function (m3) { - m3.server; })(m3 || (m3 = {})); var m = m3; module.exports = m; diff --git a/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js index 75968ed1794..4d203705c4a 100644 --- a/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js +++ b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js @@ -17,7 +17,6 @@ define(["require", "exports"], function (require, exports) { }); //// [declFileExportAssignmentOfGenericInterface_1.js] define(["require", "exports"], function (require, exports) { - exports.x; exports.x.a; }); diff --git a/tests/baselines/reference/declFileExportImportChain.js b/tests/baselines/reference/declFileExportImportChain.js index 547189948c9..127e8010b49 100644 --- a/tests/baselines/reference/declFileExportImportChain.js +++ b/tests/baselines/reference/declFileExportImportChain.js @@ -54,7 +54,6 @@ define(["require", "exports", "declFileExportImportChain_b1"], function (require }); //// [declFileExportImportChain_d.js] define(["require", "exports"], function (require, exports) { - exports.x; }); diff --git a/tests/baselines/reference/declFileExportImportChain2.js b/tests/baselines/reference/declFileExportImportChain2.js index d1299a21c5a..3a644428b8a 100644 --- a/tests/baselines/reference/declFileExportImportChain2.js +++ b/tests/baselines/reference/declFileExportImportChain2.js @@ -47,7 +47,6 @@ define(["require", "exports", "declFileExportImportChain2_b"], function (require }); //// [declFileExportImportChain2_d.js] define(["require", "exports"], function (require, exports) { - exports.x; }); diff --git a/tests/baselines/reference/declFileForExportedImport.js b/tests/baselines/reference/declFileForExportedImport.js index 0575ea7bfd0..af7cfa46b73 100644 --- a/tests/baselines/reference/declFileForExportedImport.js +++ b/tests/baselines/reference/declFileForExportedImport.js @@ -12,7 +12,6 @@ export import b = a; var z = b.x; //// [declFileForExportedImport_0.js] -exports.x; //// [declFileForExportedImport_1.js] /// exports.a = require('declFileForExportedImport_0'); diff --git a/tests/baselines/reference/declFileGenericType.js b/tests/baselines/reference/declFileGenericType.js index 35fde5bde00..dfbe147a78d 100644 --- a/tests/baselines/reference/declFileGenericType.js +++ b/tests/baselines/reference/declFileGenericType.js @@ -80,7 +80,6 @@ var C; })(); C.D = D; })(C = exports.C || (exports.C = {})); -exports.a; exports.b = C.F; exports.c = C.F2; exports.d = C.F3; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js index 494603e286a..178511f2b78 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js @@ -34,7 +34,6 @@ module M { //// [declFileTypeAnnotationTypeAlias.js] var M; (function (M) { - M.x; var c = (function () { function c() { } @@ -61,7 +60,6 @@ var M; return Window; })(); N.Window = Window; - N.p; })(N = M.N || (M.N = {})); })(M || (M = {})); diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js index ec653c84dc9..4210cc13925 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js @@ -52,7 +52,7 @@ var M; return Window; })(); N.Window = Window; - N.p; // Should report error that W is private + // Should report error that W is private })(N = M.N || (M.N = {})); })(M || (M = {})); var M1; @@ -65,7 +65,7 @@ var M1; return Window; })(); N.Window = Window; - N.p; // No error + // No error })(N = M1.N || (M1.N = {})); })(M1 || (M1 = {})); var M2; diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js index f6bd1689e60..959d82917f7 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js @@ -51,7 +51,6 @@ var m; })(); m2.public1 = public1; })(m2 || (m2 = {})); - m.x; m.x2 = { x: new private1(), y: new m2.public1(), @@ -61,9 +60,7 @@ var m; }; m.x3 = m.x; // Function type - m.y; m.y2 = m.y; // constructor type - m.z; m.z2 = m.z; })(m || (m = {})); diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js index a097ac159db..3d4a4337ae9 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js @@ -50,11 +50,9 @@ var m; // Directly using names from this module var x; var y = new private1(); - m.k; m.l = new private1(); var x2; var y2 = new public1(); - m.k2; m.l2 = new public1(); var m2; (function (m2) { @@ -67,6 +65,5 @@ var m; })(m2 || (m2 = {})); var x3; var y3 = new m2.public2(); - m.k3; m.l3 = new m2.public2(); })(m || (m = {})); diff --git a/tests/baselines/reference/declFileTypeofModule.js b/tests/baselines/reference/declFileTypeofModule.js index b90a48fc8fa..fad0c1b25bb 100644 --- a/tests/baselines/reference/declFileTypeofModule.js +++ b/tests/baselines/reference/declFileTypeofModule.js @@ -16,13 +16,11 @@ var m2_2: typeof m2; //// [declFileTypeofModule.js] var m1; (function (m1) { - m1.c; })(m1 || (m1 = {})); var m1_1 = m1; var m1_2; var m2; (function (m2) { - m2.d; })(m2 || (m2 = {})); var m2_1 = m2; var m2_2; diff --git a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js index 9b580bcd7a4..b82766e2834 100644 --- a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js +++ b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js @@ -22,7 +22,6 @@ var m; })(); c_1.c = c; })(c = m.c || (m.c = {})); - m.a; })(m || (m = {})); module.exports = m; diff --git a/tests/baselines/reference/declarationEmit_nameConflicts2.js b/tests/baselines/reference/declarationEmit_nameConflicts2.js index 2a228080c68..e7b145877f8 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts2.js +++ b/tests/baselines/reference/declarationEmit_nameConflicts2.js @@ -32,7 +32,6 @@ var X; base.C = C; var M; (function (M) { - M.v; })(M = base.M || (base.M = {})); (function (E) { })(base.E || (base.E = {})); diff --git a/tests/baselines/reference/declarationEmit_nameConflicts3.js b/tests/baselines/reference/declarationEmit_nameConflicts3.js index 8f4fa686e44..db5a0a05cfd 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts3.js +++ b/tests/baselines/reference/declarationEmit_nameConflicts3.js @@ -74,7 +74,7 @@ var M; D[D["f"] = 0] = "f"; })(P.D || (P.D = {})); var D = P.D; - P.v; // ok + // ok P.w = M.D.f; // error, should be typeof M.D.f P.x = M.C.f; // error, should be typeof M.C.f P.x = M.E.f; // error, should be typeof M.E.f diff --git a/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.js b/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.js index 9d6ab935fdb..55535e9ec29 100644 --- a/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.js +++ b/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.js @@ -9,7 +9,7 @@ export module M { //// [declarationEmit_nameConflictsWithAlias.js] var M; (function (M) { - M.w; // Gets emitted as C.I, which is the wrong interface + // Gets emitted as C.I, which is the wrong interface })(M = exports.M || (exports.M = {})); diff --git a/tests/baselines/reference/decoratorOnImportEquals1.js b/tests/baselines/reference/decoratorOnImportEquals1.js index 440fdb99bce..9ad94768331 100644 --- a/tests/baselines/reference/decoratorOnImportEquals1.js +++ b/tests/baselines/reference/decoratorOnImportEquals1.js @@ -13,5 +13,4 @@ module M2 { //// [decoratorOnImportEquals1.js] var M1; (function (M1) { - M1.X; })(M1 || (M1 = {})); diff --git a/tests/baselines/reference/decoratorOnImportEquals2.js b/tests/baselines/reference/decoratorOnImportEquals2.js index 7db2da6b2c2..5f54f0b4ee6 100644 --- a/tests/baselines/reference/decoratorOnImportEquals2.js +++ b/tests/baselines/reference/decoratorOnImportEquals2.js @@ -10,5 +10,4 @@ import lib = require('./decoratorOnImportEquals2_0'); declare function dec(target: T): T; //// [decoratorOnImportEquals2_0.js] -exports.X; //// [decoratorOnImportEquals2_1.js] diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js index 34ea154daa6..155c7cede22 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js @@ -61,7 +61,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js index 8e4f927a920..5b717d0669c 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -93,7 +93,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/decrementOperatorWithNumberType.js b/tests/baselines/reference/decrementOperatorWithNumberType.js index 85ed9ca548a..98f9b9d8fde 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberType.js +++ b/tests/baselines/reference/decrementOperatorWithNumberType.js @@ -50,7 +50,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js index 34e862063ce..00a613a16f6 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js @@ -59,7 +59,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); //number type var diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js index 2be74a64d8f..9ce6d2320be 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js @@ -66,7 +66,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js index 430f9af963f..dfc828dcb28 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js @@ -78,7 +78,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/defaultArgsInFunctionExpressions.js b/tests/baselines/reference/defaultArgsInFunctionExpressions.js index 3f77c4430e8..d9cae93344f 100644 --- a/tests/baselines/reference/defaultArgsInFunctionExpressions.js +++ b/tests/baselines/reference/defaultArgsInFunctionExpressions.js @@ -62,7 +62,6 @@ var f5 = function (a) { }; var U; (function (U) { - U.x; })(U || (U = {})); var f6 = function (t) { if (t === void 0) { t = T; } diff --git a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js index e2a2be4d9aa..03558d41e87 100644 --- a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js @@ -83,7 +83,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/deleteOperatorWithBooleanType.js b/tests/baselines/reference/deleteOperatorWithBooleanType.js index b0a60a23744..2b390f2dc0f 100644 --- a/tests/baselines/reference/deleteOperatorWithBooleanType.js +++ b/tests/baselines/reference/deleteOperatorWithBooleanType.js @@ -50,7 +50,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/deleteOperatorWithNumberType.js b/tests/baselines/reference/deleteOperatorWithNumberType.js index bb70c55024d..024fc850cc4 100644 --- a/tests/baselines/reference/deleteOperatorWithNumberType.js +++ b/tests/baselines/reference/deleteOperatorWithNumberType.js @@ -58,7 +58,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/deleteOperatorWithStringType.js b/tests/baselines/reference/deleteOperatorWithStringType.js index 79246e27725..9dcf113b4b2 100644 --- a/tests/baselines/reference/deleteOperatorWithStringType.js +++ b/tests/baselines/reference/deleteOperatorWithStringType.js @@ -57,7 +57,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js b/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js index 6a567018d1f..170740458d7 100644 --- a/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js +++ b/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js @@ -117,7 +117,7 @@ var Foo = (function () { })(); var Foo; (function (Foo) { - Foo.x; // error for redeclaring var in a different parent + // error for redeclaring var in a different parent })(Foo || (Foo = {})); var N; (function (N) { diff --git a/tests/baselines/reference/duplicateSymbolsExportMatching.js b/tests/baselines/reference/duplicateSymbolsExportMatching.js index 89b5a210ec4..06e37d0d5bb 100644 --- a/tests/baselines/reference/duplicateSymbolsExportMatching.js +++ b/tests/baselines/reference/duplicateSymbolsExportMatching.js @@ -83,9 +83,9 @@ define(["require", "exports"], function (require, exports) { var M2; (function (M2) { var v; - M2.v; // one error (visibility) + // one error (visibility) var w; - M2.w; // two errors (visibility and type mismatch) + // two errors (visibility and type mismatch) })(M2 || (M2 = {})); var M; (function (M) { diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index 7051d8d2433..5ab7dcc5a5a 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -140,11 +140,9 @@ b++; // modules var moduleType1; (function (moduleType1) { - moduleType1.baz1; })(moduleType1 || (moduleType1 = {})); var moduleType\u0032; (function (moduleType2) { - moduleType2.baz2; })(moduleType\u0032 || (moduleType\u0032 = {})); moduleType1.baz1 = 3; moduleType\u0031.baz1 = 3; diff --git a/tests/baselines/reference/exportAssignmentError.js b/tests/baselines/reference/exportAssignmentError.js index 3a9e57029a9..777a9fab048 100644 --- a/tests/baselines/reference/exportAssignmentError.js +++ b/tests/baselines/reference/exportAssignmentError.js @@ -12,7 +12,6 @@ export = M2; // should not error define(["require", "exports"], function (require, exports) { var M; (function (M) { - M.x; })(M || (M = {})); var M2 = M; return M2; diff --git a/tests/baselines/reference/exportAssignmentInternalModule.js b/tests/baselines/reference/exportAssignmentInternalModule.js index fb9adfd5650..3426519e626 100644 --- a/tests/baselines/reference/exportAssignmentInternalModule.js +++ b/tests/baselines/reference/exportAssignmentInternalModule.js @@ -16,7 +16,6 @@ var n: number = modM.x; define(["require", "exports"], function (require, exports) { var M; (function (M) { - M.x; })(M || (M = {})); return M; }); diff --git a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.js b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.js index cb4cb3269b1..adfb85ae4bc 100644 --- a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.js +++ b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.js @@ -25,7 +25,6 @@ export = M; define(["require", "exports"], function (require, exports) { var M; (function (M) { - M.server; })(M || (M = {})); return M; }); diff --git a/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt new file mode 100644 index 00000000000..ae79675d8dd --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesAMD.errors.txt @@ -0,0 +1,46 @@ +tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts(2,4): error TS1123: Variable declaration list cannot be empty. +tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts(3,1): error TS2304: Cannot find name 'let'. +tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts(4,6): error TS1123: Variable declaration list cannot be empty. + + +==== tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts (3 errors) ==== + + var; + +!!! error TS1123: Variable declaration list cannot be empty. + let; + ~~~ +!!! error TS2304: Cannot find name 'let'. + const; + +!!! error TS1123: Variable declaration list cannot be empty. + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesAMD.js b/tests/baselines/reference/exportNonInitializedVariablesAMD.js new file mode 100644 index 00000000000..3b61281eaba --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesAMD.js @@ -0,0 +1,69 @@ +//// [exportNonInitializedVariablesAMD.ts] + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; + + +//// [exportNonInitializedVariablesAMD.js] +define(["require", "exports"], function (require, exports) { + var ; + let; + var ; + var A = (function () { + function A() { + } + return A; + })(); + var B; + (function (B) { + B.a = 1, B.c = 2; + })(B || (B = {})); + var C; + (function (C) { + C.a = 1, C.c = 2; + })(C || (C = {})); + // Shouldn't be filtered + exports.a1 = 1; + exports.b1 = 1; + exports.c1 = 'a'; + exports.d1 = 1; + var D = (function () { + function D() { + } + return D; + })(); + exports.e1 = new D; + exports.f1 = new D; + exports.g1 = new D; + exports.h1 = new D; +}); diff --git a/tests/baselines/reference/exportNonInitializedVariablesCommonJS.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.errors.txt new file mode 100644 index 00000000000..65a18649af3 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.errors.txt @@ -0,0 +1,46 @@ +tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts(2,4): error TS1123: Variable declaration list cannot be empty. +tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts(3,1): error TS2304: Cannot find name 'let'. +tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts(4,6): error TS1123: Variable declaration list cannot be empty. + + +==== tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts (3 errors) ==== + + var; + +!!! error TS1123: Variable declaration list cannot be empty. + let; + ~~~ +!!! error TS2304: Cannot find name 'let'. + const; + +!!! error TS1123: Variable declaration list cannot be empty. + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js new file mode 100644 index 00000000000..c1d308b1b94 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js @@ -0,0 +1,67 @@ +//// [exportNonInitializedVariablesCommonJS.ts] + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; + + +//// [exportNonInitializedVariablesCommonJS.js] +var ; +let; +var ; +var A = (function () { + function A() { + } + return A; +})(); +var B; +(function (B) { + B.a = 1, B.c = 2; +})(B || (B = {})); +var C; +(function (C) { + C.a = 1, C.c = 2; +})(C || (C = {})); +// Shouldn't be filtered +exports.a1 = 1; +exports.b1 = 1; +exports.c1 = 'a'; +exports.d1 = 1; +var D = (function () { + function D() { + } + return D; +})(); +exports.e1 = new D; +exports.f1 = new D; +exports.g1 = new D; +exports.h1 = new D; diff --git a/tests/baselines/reference/exportNonInitializedVariablesES6.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesES6.errors.txt new file mode 100644 index 00000000000..905d16b360f --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesES6.errors.txt @@ -0,0 +1,46 @@ +tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts(2,4): error TS1123: Variable declaration list cannot be empty. +tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts(3,1): error TS2304: Cannot find name 'let'. +tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts(4,6): error TS1123: Variable declaration list cannot be empty. + + +==== tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts (3 errors) ==== + + var; + +!!! error TS1123: Variable declaration list cannot be empty. + let; + ~~~ +!!! error TS2304: Cannot find name 'let'. + const; + +!!! error TS1123: Variable declaration list cannot be empty. + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesES6.js b/tests/baselines/reference/exportNonInitializedVariablesES6.js new file mode 100644 index 00000000000..e4f47b2dc68 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesES6.js @@ -0,0 +1,67 @@ +//// [exportNonInitializedVariablesES6.ts] + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; + + +//// [exportNonInitializedVariablesES6.js] +var ; +let; +const ; +export var a; +export let b; +export var c; +export let d; +class A { +} +export var e; +export let f; +var B; +(function (B) { + B.a = 1, B.c = 2; +})(B || (B = {})); +var C; +(function (C) { + C.a = 1, C.c = 2; +})(C || (C = {})); +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1 = 'a'; +export let d1 = 1; +class D { +} +export var e1 = new D; +export let f1 = new D; +export var g1 = new D; +export let h1 = new D; diff --git a/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt new file mode 100644 index 00000000000..d7aeb5d2ac0 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesSystem.errors.txt @@ -0,0 +1,46 @@ +tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts(2,4): error TS1123: Variable declaration list cannot be empty. +tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts(3,1): error TS2304: Cannot find name 'let'. +tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts(4,6): error TS1123: Variable declaration list cannot be empty. + + +==== tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts (3 errors) ==== + + var; + +!!! error TS1123: Variable declaration list cannot be empty. + let; + ~~~ +!!! error TS2304: Cannot find name 'let'. + const; + +!!! error TS1123: Variable declaration list cannot be empty. + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesSystem.js b/tests/baselines/reference/exportNonInitializedVariablesSystem.js new file mode 100644 index 00000000000..3b9c5d759dc --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesSystem.js @@ -0,0 +1,71 @@ +//// [exportNonInitializedVariablesSystem.ts] + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; + + +//// [exportNonInitializedVariablesSystem.js] +System.register([], function(exports_1) { + var a, b, c, d, A, e, f, B, C, a1, b1, c1, d1, D, e1, f1, g1, h1; + return { + setters:[], + execute: function() { + let; + A = (function () { + function A() { + } + return A; + })(); + (function (B) { + B.a = 1, B.c = 2; + })(B || (B = {})); + (function (C) { + C.a = 1, C.c = 2; + })(C || (C = {})); + // Shouldn't be filtered + exports_1("a1", a1 = 1); + exports_1("b1", b1 = 1); + exports_1("c1", c1 = 'a'); + exports_1("d1", d1 = 1); + D = (function () { + function D() { + } + return D; + })(); + exports_1("e1", e1 = new D); + exports_1("f1", f1 = new D); + exports_1("g1", g1 = new D); + exports_1("h1", h1 = new D); + } + } +}); diff --git a/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt b/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt new file mode 100644 index 00000000000..eaf68e67055 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesUMD.errors.txt @@ -0,0 +1,46 @@ +tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts(2,4): error TS1123: Variable declaration list cannot be empty. +tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts(3,1): error TS2304: Cannot find name 'let'. +tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts(4,6): error TS1123: Variable declaration list cannot be empty. + + +==== tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts (3 errors) ==== + + var; + +!!! error TS1123: Variable declaration list cannot be empty. + let; + ~~~ +!!! error TS2304: Cannot find name 'let'. + const; + +!!! error TS1123: Variable declaration list cannot be empty. + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; + \ No newline at end of file diff --git a/tests/baselines/reference/exportNonInitializedVariablesUMD.js b/tests/baselines/reference/exportNonInitializedVariablesUMD.js new file mode 100644 index 00000000000..1e8b3ce4446 --- /dev/null +++ b/tests/baselines/reference/exportNonInitializedVariablesUMD.js @@ -0,0 +1,76 @@ +//// [exportNonInitializedVariablesUMD.ts] + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; + + +//// [exportNonInitializedVariablesUMD.js] +(function (deps, factory) { + if (typeof module === 'object' && typeof module.exports === 'object') { + var v = factory(require, exports); if (v !== undefined) module.exports = v; + } + else if (typeof define === 'function' && define.amd) { + define(deps, factory); + } +})(["require", "exports"], function (require, exports) { + var ; + let; + var ; + var A = (function () { + function A() { + } + return A; + })(); + var B; + (function (B) { + B.a = 1, B.c = 2; + })(B || (B = {})); + var C; + (function (C) { + C.a = 1, C.c = 2; + })(C || (C = {})); + // Shouldn't be filtered + exports.a1 = 1; + exports.b1 = 1; + exports.c1 = 'a'; + exports.d1 = 1; + var D = (function () { + function D() { + } + return D; + })(); + exports.e1 = new D; + exports.f1 = new D; + exports.g1 = new D; + exports.h1 = new D; +}); diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index 11ccc037ef6..87dc16968f6 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -45,9 +45,5 @@ var foo; return C2; })(); // None of the types are exported, so per section 10.3, should all be errors - foo.e; - foo.f; - foo.g; - foo.h; })(foo || (foo = {})); var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'. diff --git a/tests/baselines/reference/exportsAndImports1-amd.js b/tests/baselines/reference/exportsAndImports1-amd.js index fdc6d396bad..39744c7f142 100644 --- a/tests/baselines/reference/exportsAndImports1-amd.js +++ b/tests/baselines/reference/exportsAndImports1-amd.js @@ -55,7 +55,6 @@ define(["require", "exports"], function (require, exports) { exports.E = E; var M; (function (M) { - M.x; })(M || (M = {})); exports.M = M; var a = M.x; diff --git a/tests/baselines/reference/exportsAndImports1.js b/tests/baselines/reference/exportsAndImports1.js index 87cb9e0fe13..cd7db07b569 100644 --- a/tests/baselines/reference/exportsAndImports1.js +++ b/tests/baselines/reference/exportsAndImports1.js @@ -54,7 +54,6 @@ var E; exports.E = E; var M; (function (M) { - M.x; })(M || (M = {})); exports.M = M; var a = M.x; diff --git a/tests/baselines/reference/exportsAndImports3-amd.js b/tests/baselines/reference/exportsAndImports3-amd.js index f72d063e099..e816dec9f62 100644 --- a/tests/baselines/reference/exportsAndImports3-amd.js +++ b/tests/baselines/reference/exportsAndImports3-amd.js @@ -57,7 +57,6 @@ define(["require", "exports"], function (require, exports) { exports.E1 = exports.E; var M; (function (M) { - M.x; })(M = exports.M || (exports.M = {})); exports.M1 = exports.M; exports.a = M.x; diff --git a/tests/baselines/reference/exportsAndImports3.js b/tests/baselines/reference/exportsAndImports3.js index 56baead64cc..db29b62449e 100644 --- a/tests/baselines/reference/exportsAndImports3.js +++ b/tests/baselines/reference/exportsAndImports3.js @@ -56,7 +56,6 @@ var E = exports.E; exports.E1 = exports.E; var M; (function (M) { - M.x; })(M = exports.M || (exports.M = {})); exports.M1 = exports.M; exports.a = M.x; diff --git a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.js b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.js index 9b0fbf4bcad..6dd456ab703 100644 --- a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.js +++ b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.js @@ -10,6 +10,5 @@ module foo { function foo(y, z) { return y; } var foo; (function (foo) { - foo.x; var y = 1; })(foo || (foo = {})); diff --git a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js index 76b6159f487..27961a68c73 100644 --- a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js +++ b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js @@ -14,6 +14,5 @@ var foo = (function () { })(); var foo; (function (foo) { - foo.x; var y = 1; })(foo || (foo = {})); diff --git a/tests/baselines/reference/giant.js b/tests/baselines/reference/giant.js index 4409933bb19..46bdaf827d5 100644 --- a/tests/baselines/reference/giant.js +++ b/tests/baselines/reference/giant.js @@ -805,7 +805,6 @@ define(["require", "exports"], function (require, exports) { ; ; ; - M.eV; function eF() { } M.eF = eF; ; @@ -822,7 +821,6 @@ define(["require", "exports"], function (require, exports) { ; ; })(M || (M = {})); - M_1.eV; function eF() { } M_1.eF = eF; ; @@ -884,7 +882,6 @@ define(["require", "exports"], function (require, exports) { ; ; ; - eM.eV; function eF() { } eM.eF = eF; ; @@ -903,7 +900,6 @@ define(["require", "exports"], function (require, exports) { })(eM = M_1.eM || (M_1.eM = {})); ; })(M || (M = {})); - exports.eV; function eF() { } exports.eF = eF; ; @@ -1014,7 +1010,6 @@ define(["require", "exports"], function (require, exports) { ; ; ; - M.eV; function eF() { } M.eF = eF; ; @@ -1031,7 +1026,6 @@ define(["require", "exports"], function (require, exports) { ; ; })(M || (M = {})); - eM_1.eV; function eF() { } eM_1.eF = eF; ; @@ -1093,7 +1087,6 @@ define(["require", "exports"], function (require, exports) { ; ; ; - eM.eV; function eF() { } eM.eF = eF; ; diff --git a/tests/baselines/reference/importDecl.js b/tests/baselines/reference/importDecl.js index 9d4839e5e7c..fb2aa6e0d1f 100644 --- a/tests/baselines/reference/importDecl.js +++ b/tests/baselines/reference/importDecl.js @@ -88,7 +88,6 @@ var d = (function () { return d; })(); exports.d = d; -exports.x; function foo() { return null; } exports.foo = foo; //// [importDecl_require1.js] @@ -108,7 +107,6 @@ var d = (function () { return d; })(); exports.d = d; -exports.x; function foo() { return null; } exports.foo = foo; //// [importDecl_require3.js] @@ -118,7 +116,6 @@ var d = (function () { return d; })(); exports.d = d; -exports.x; function foo() { return null; } exports.foo = foo; //// [importDecl_require4.js] diff --git a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js index 6f6d9367278..70244f47381 100644 --- a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js +++ b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js @@ -19,7 +19,6 @@ var B = (function () { })(); exports.B = B; //// [importDeclarationUsedAsTypeQuery_1.js] -exports.x; //// [importDeclarationUsedAsTypeQuery_require.d.ts] diff --git a/tests/baselines/reference/importOnAliasedIdentifiers.js b/tests/baselines/reference/importOnAliasedIdentifiers.js index 7034f682bf3..ceb6ebb7b2e 100644 --- a/tests/baselines/reference/importOnAliasedIdentifiers.js +++ b/tests/baselines/reference/importOnAliasedIdentifiers.js @@ -13,7 +13,6 @@ module B { //// [importOnAliasedIdentifiers.js] var A; (function (A) { - A.X; })(A || (A = {})); var B; (function (B) { diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js index 4c9d570d07f..6cd7afc5a60 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js @@ -61,7 +61,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js index 6f76fba6d8c..259dcac404e 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -90,7 +90,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/incrementOperatorWithNumberType.js b/tests/baselines/reference/incrementOperatorWithNumberType.js index 09365833e3b..cf7ce435cb0 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberType.js +++ b/tests/baselines/reference/incrementOperatorWithNumberType.js @@ -50,7 +50,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js index eb9cd949280..17820b7bd86 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js @@ -59,7 +59,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); //number type var diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js index 6a974443f7b..5bdba8dfee5 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js @@ -66,7 +66,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js index 82bf03cd83a..baeaf9555fb 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js @@ -78,7 +78,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/internalAliasInterface.js b/tests/baselines/reference/internalAliasInterface.js index d2006caf24c..aa902c2f56e 100644 --- a/tests/baselines/reference/internalAliasInterface.js +++ b/tests/baselines/reference/internalAliasInterface.js @@ -13,7 +13,6 @@ module c { //// [internalAliasInterface.js] var c; (function (c) { - c.x; })(c || (c = {})); diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.js index c4852ffe27a..8db0ad7f49e 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.js @@ -14,7 +14,6 @@ export module c { define(["require", "exports"], function (require, exports) { var c; (function (c) { - c.x; })(c = exports.c || (exports.c = {})); }); diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.js index b09f21650e4..047553fa668 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.js @@ -14,7 +14,6 @@ export module c { define(["require", "exports"], function (require, exports) { var c; (function (c) { - c.x; })(c = exports.c || (exports.c = {})); }); diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js index 1d13192c928..e5ac69a44c1 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.js @@ -15,7 +15,6 @@ var x: c.b; define(["require", "exports"], function (require, exports) { var c; (function (c) { - c.x; })(c = exports.c || (exports.c = {})); var x; }); diff --git a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.js index a771da2d789..912336068da 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.js @@ -9,7 +9,6 @@ export var x: b; //// [internalAliasInterfaceInsideTopLevelModuleWithExport.js] -exports.x; //// [internalAliasInterfaceInsideTopLevelModuleWithExport.d.ts] diff --git a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.js index bd1a83fdd85..3964e539fdf 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.js @@ -10,7 +10,6 @@ export var x: b; //// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.js] define(["require", "exports"], function (require, exports) { - exports.x; }); diff --git a/tests/baselines/reference/internalAliasUninitializedModule.js b/tests/baselines/reference/internalAliasUninitializedModule.js index ee62a10c1ca..5233f9a790d 100644 --- a/tests/baselines/reference/internalAliasUninitializedModule.js +++ b/tests/baselines/reference/internalAliasUninitializedModule.js @@ -16,7 +16,6 @@ module c { //// [internalAliasUninitializedModule.js] var c; (function (c) { - c.x; c.x.foo(); })(c || (c = {})); diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.js index 5c67c835f1f..f6faee442c4 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.js @@ -16,7 +16,6 @@ export module c { //// [internalAliasUninitializedModuleInsideLocalModuleWithExport.js] var c; (function (c) { - c.x; c.x.foo(); })(c = exports.c || (exports.c = {})); diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js index 6f85a346891..2ef3c5320a8 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js @@ -16,7 +16,6 @@ export module c { //// [internalAliasUninitializedModuleInsideLocalModuleWithoutExport.js] var c; (function (c) { - c.x; c.x.foo(); })(c = exports.c || (exports.c = {})); diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js index 61d1005c9f4..ea13aae8aa1 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.js @@ -20,8 +20,6 @@ export var z: c.b.I; define(["require", "exports"], function (require, exports) { var c; (function (c) { - c.x; c.x.foo(); })(c = exports.c || (exports.c = {})); - exports.z; }); diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js index 79bc7c6c874..edfc3be8e69 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js @@ -14,7 +14,6 @@ x.foo(); //// [internalAliasUninitializedModuleInsideTopLevelModuleWithExport.js] define(["require", "exports"], function (require, exports) { - exports.x; exports.x.foo(); }); diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js index 3f626fd37ac..6e484e67cdb 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js @@ -13,7 +13,6 @@ x.foo(); //// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js] -exports.x; exports.x.foo(); diff --git a/tests/baselines/reference/internalAliasWithDottedNameEmit.js b/tests/baselines/reference/internalAliasWithDottedNameEmit.js index 98c8ce36a6c..0e74d7ecd4e 100644 --- a/tests/baselines/reference/internalAliasWithDottedNameEmit.js +++ b/tests/baselines/reference/internalAliasWithDottedNameEmit.js @@ -14,7 +14,6 @@ var a; (function (b) { var c; (function (c) { - c.d; })(c = b.c || (b.c = {})); })(b = a.b || (a.b = {})); })(a || (a = {})); diff --git a/tests/baselines/reference/intrinsics.js b/tests/baselines/reference/intrinsics.js index 5e608b7fd6a..736ffa020fa 100644 --- a/tests/baselines/reference/intrinsics.js +++ b/tests/baselines/reference/intrinsics.js @@ -19,7 +19,6 @@ var foo: (__proto__: number) => void; var hasOwnProperty; // Error var m1; (function (m1) { - m1.__proto__; var C = (function () { function C() { } diff --git a/tests/baselines/reference/invalidNestedModules.js b/tests/baselines/reference/invalidNestedModules.js index 0679dae7ac6..5f3a19aaec8 100644 --- a/tests/baselines/reference/invalidNestedModules.js +++ b/tests/baselines/reference/invalidNestedModules.js @@ -73,6 +73,6 @@ var M2; (function (M2) { var X; (function (X) { - X.Point; // Error + // Error })(X = M2.X || (M2.X = {})); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js index 28366739233..61a1d4c01d1 100644 --- a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js @@ -81,7 +81,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js index 107bd9a88ec..6af1f67f7cf 100644 --- a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js @@ -50,7 +50,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/logicalNotOperatorWithNumberType.js b/tests/baselines/reference/logicalNotOperatorWithNumberType.js index 0d0601cad23..b291d31f5b0 100644 --- a/tests/baselines/reference/logicalNotOperatorWithNumberType.js +++ b/tests/baselines/reference/logicalNotOperatorWithNumberType.js @@ -58,7 +58,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/logicalNotOperatorWithStringType.js b/tests/baselines/reference/logicalNotOperatorWithStringType.js index 7f75814d601..caf31b78057 100644 --- a/tests/baselines/reference/logicalNotOperatorWithStringType.js +++ b/tests/baselines/reference/logicalNotOperatorWithStringType.js @@ -57,7 +57,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/moduleAliasAsFunctionArgument.js b/tests/baselines/reference/moduleAliasAsFunctionArgument.js index 4cf9114a26d..ae95e2f7361 100644 --- a/tests/baselines/reference/moduleAliasAsFunctionArgument.js +++ b/tests/baselines/reference/moduleAliasAsFunctionArgument.js @@ -16,7 +16,6 @@ fn(a); // Error: property 'x' is missing from 'a' //// [moduleAliasAsFunctionArgument_0.js] define(["require", "exports"], function (require, exports) { - exports.x; }); //// [moduleAliasAsFunctionArgument_1.js] define(["require", "exports", 'moduleAliasAsFunctionArgument_0'], function (require, exports, a) { diff --git a/tests/baselines/reference/moduleProperty2.js b/tests/baselines/reference/moduleProperty2.js index 715577b6458..7ed1c89108c 100644 --- a/tests/baselines/reference/moduleProperty2.js +++ b/tests/baselines/reference/moduleProperty2.js @@ -21,7 +21,6 @@ var M; var x; } var y; - M.z; var test1 = x; var test2 = y; // y visible because same module })(M || (M = {})); diff --git a/tests/baselines/reference/moduleUnassignedVariable.js b/tests/baselines/reference/moduleUnassignedVariable.js index 1765342efcd..e8719742ab6 100644 --- a/tests/baselines/reference/moduleUnassignedVariable.js +++ b/tests/baselines/reference/moduleUnassignedVariable.js @@ -13,6 +13,5 @@ var Bar; (function (Bar) { Bar.a = 1; function fooA() { return Bar.a; } // Correct: return Bar.a - Bar.b; function fooB() { return Bar.b; } // Incorrect: return b })(Bar || (Bar = {})); diff --git a/tests/baselines/reference/moduledecl.js b/tests/baselines/reference/moduledecl.js index 4a27e0fbe1f..ef3b9a2965c 100644 --- a/tests/baselines/reference/moduledecl.js +++ b/tests/baselines/reference/moduledecl.js @@ -272,11 +272,9 @@ var m; var m2; (function (m2) { var a = 10; - m2.b; })(m2 = m.m2 || (m.m2 = {})); var m3; (function (m3) { - m3.c; })(m3 = m.m3 || (m.m3 = {})); })(m || (m = {})); var m; @@ -285,7 +283,6 @@ var m; (function (m25) { var m5; (function (m5) { - m5.c; })(m5 = m25.m5 || (m25.m5 = {})); })(m25 = m.m25 || (m.m25 = {})); })(m || (m = {})); @@ -297,7 +294,6 @@ var m13; (function (m2) { var m3; (function (m3) { - m3.c; })(m3 = m2.m3 || (m2.m3 = {})); })(m2 = m4.m2 || (m4.m2 = {})); function f() { diff --git a/tests/baselines/reference/multipleExports.js b/tests/baselines/reference/multipleExports.js index b8c08952b67..ec795ef9913 100644 --- a/tests/baselines/reference/multipleExports.js +++ b/tests/baselines/reference/multipleExports.js @@ -16,7 +16,6 @@ export module M { var M; (function (M) { M.v = 0; - M.x; })(M = exports.M || (exports.M = {})); var x = 0; var M; diff --git a/tests/baselines/reference/multivar.js b/tests/baselines/reference/multivar.js index b5a997a2bd5..3f9796d2944 100644 --- a/tests/baselines/reference/multivar.js +++ b/tests/baselines/reference/multivar.js @@ -51,7 +51,7 @@ var a, b, c; var x = 1, y = 2, z = 3; var m2; (function (m2) { - m2.a, m2.b2 = 10, m2.b; + m2.b2 = 10; var m1; var a2, b22 = 10, b222; var m3; diff --git a/tests/baselines/reference/negateOperatorWithAnyOtherType.js b/tests/baselines/reference/negateOperatorWithAnyOtherType.js index 8418bbbe467..e0dd9b184c3 100644 --- a/tests/baselines/reference/negateOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/negateOperatorWithAnyOtherType.js @@ -75,7 +75,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/negateOperatorWithBooleanType.js b/tests/baselines/reference/negateOperatorWithBooleanType.js index 9442f54490f..c357849d8a5 100644 --- a/tests/baselines/reference/negateOperatorWithBooleanType.js +++ b/tests/baselines/reference/negateOperatorWithBooleanType.js @@ -47,7 +47,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/negateOperatorWithNumberType.js b/tests/baselines/reference/negateOperatorWithNumberType.js index 5fa83e088c8..8a29830e3e4 100644 --- a/tests/baselines/reference/negateOperatorWithNumberType.js +++ b/tests/baselines/reference/negateOperatorWithNumberType.js @@ -54,7 +54,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/negateOperatorWithStringType.js b/tests/baselines/reference/negateOperatorWithStringType.js index bdbc4a3d664..2b79819894c 100644 --- a/tests/baselines/reference/negateOperatorWithStringType.js +++ b/tests/baselines/reference/negateOperatorWithStringType.js @@ -53,7 +53,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/nestedModules.js b/tests/baselines/reference/nestedModules.js index f146990ec82..c602bb765e2 100644 --- a/tests/baselines/reference/nestedModules.js +++ b/tests/baselines/reference/nestedModules.js @@ -44,7 +44,6 @@ var M2; (function (M2) { var X; (function (X) { - X.Point; })(X = M2.X || (M2.X = {})); })(M2 || (M2 = {})); var m = M2.X; diff --git a/tests/baselines/reference/nonExportedElementsOfMergedModules.js b/tests/baselines/reference/nonExportedElementsOfMergedModules.js index 25efa8a7ec4..e46bf62c05f 100644 --- a/tests/baselines/reference/nonExportedElementsOfMergedModules.js +++ b/tests/baselines/reference/nonExportedElementsOfMergedModules.js @@ -25,7 +25,6 @@ var One; })(A || (A = {})); var B; (function (B) { - B.x; })(B || (B = {})); })(One || (One = {})); var One; @@ -36,7 +35,6 @@ var One; })(A || (A = {})); var B; (function (B) { - B.y; })(B || (B = {})); B.x; B.y; diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesErrorWithModule.js b/tests/baselines/reference/objectLiteralShorthandPropertiesErrorWithModule.js index 010afbc4b9e..65ba94f86a3 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesErrorWithModule.js +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesErrorWithModule.js @@ -20,7 +20,6 @@ m.y.x; var x = "Foo"; var m; (function (m) { - m.x; })(m || (m = {})); var n; (function (n) { diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.js b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.js index e2eb1fc128c..83dd0210a4c 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.js +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.js @@ -18,7 +18,6 @@ module m { // module export var m; (function (m) { - m.x; })(m || (m = {})); var m; (function (m) { diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.js b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.js index edb4e6c2953..7a5aaa34242 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.js +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.js @@ -16,7 +16,6 @@ module m { //// [objectLiteralShorthandPropertiesWithModuleES6.js] var m; (function (m) { - m.x; })(m || (m = {})); var m; (function (m) { diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js index d74e81fad27..4e22c804ab6 100644 --- a/tests/baselines/reference/parserharness.js +++ b/tests/baselines/reference/parserharness.js @@ -2503,8 +2503,6 @@ var Harness; (function (Perf) { var Clock; (function (Clock) { - Clock.now; - Clock.resolution; if (typeof WScript !== "undefined" && typeof global['WScript'].InitializeProjection !== "undefined") { // Running in JSHost. global['WScript'].InitializeProjection(); diff --git a/tests/baselines/reference/plusOperatorWithAnyOtherType.js b/tests/baselines/reference/plusOperatorWithAnyOtherType.js index 33ac4ebb144..0356bad198e 100644 --- a/tests/baselines/reference/plusOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/plusOperatorWithAnyOtherType.js @@ -78,7 +78,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any other type var diff --git a/tests/baselines/reference/plusOperatorWithBooleanType.js b/tests/baselines/reference/plusOperatorWithBooleanType.js index 5af1a8fb903..d48066707aa 100644 --- a/tests/baselines/reference/plusOperatorWithBooleanType.js +++ b/tests/baselines/reference/plusOperatorWithBooleanType.js @@ -47,7 +47,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/plusOperatorWithNumberType.js b/tests/baselines/reference/plusOperatorWithNumberType.js index a0adaa5dec2..8da631aa7a8 100644 --- a/tests/baselines/reference/plusOperatorWithNumberType.js +++ b/tests/baselines/reference/plusOperatorWithNumberType.js @@ -54,7 +54,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/plusOperatorWithStringType.js b/tests/baselines/reference/plusOperatorWithStringType.js index ed2c60111b3..dbe7e23a3d6 100644 --- a/tests/baselines/reference/plusOperatorWithStringType.js +++ b/tests/baselines/reference/plusOperatorWithStringType.js @@ -53,7 +53,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/privacyCheckTypeOfFunction.js b/tests/baselines/reference/privacyCheckTypeOfFunction.js index 757416c691b..b29a21b98b5 100644 --- a/tests/baselines/reference/privacyCheckTypeOfFunction.js +++ b/tests/baselines/reference/privacyCheckTypeOfFunction.js @@ -8,5 +8,4 @@ export var b = foo; //// [privacyCheckTypeOfFunction.js] function foo() { } -exports.x; exports.b = foo; diff --git a/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleError.js b/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleError.js index 80941509d4f..e2ee218de06 100644 --- a/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleError.js +++ b/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleError.js @@ -13,7 +13,5 @@ var Outer; (function (Outer) { var Inner; (function (Inner) { - Inner.m; })(Inner || (Inner = {})); - Outer.f; })(Outer || (Outer = {})); diff --git a/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleNoError.js b/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleNoError.js index 832c7d2e50d..0301b7b9e4b 100644 --- a/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleNoError.js +++ b/tests/baselines/reference/privacyCheckTypeOfInvisibleModuleNoError.js @@ -13,7 +13,6 @@ var Outer; (function (Outer) { var Inner; (function (Inner) { - Inner.m; })(Inner || (Inner = {})); - Outer.f; // Since we dont unwind inner any more, it is error here + // Since we dont unwind inner any more, it is error here })(Outer || (Outer = {})); diff --git a/tests/baselines/reference/privacyGloImport.js b/tests/baselines/reference/privacyGloImport.js index 9f29e383786..7f832ef75fe 100644 --- a/tests/baselines/reference/privacyGloImport.js +++ b/tests/baselines/reference/privacyGloImport.js @@ -168,7 +168,6 @@ var m1; } m1_M1_public.f1 = f1; m1_M1_public.v1 = c1; - m1_M1_public.v2; })(m1_M1_public = m1.m1_M1_public || (m1.m1_M1_public = {})); var m1_M2_private; (function (m1_M2_private) { @@ -183,7 +182,6 @@ var m1; } m1_M2_private.f1 = f1; m1_M2_private.v1 = c1; - m1_M2_private.v2; })(m1_M2_private || (m1_M2_private = {})); //export declare module "m1_M3_public" { // export function f1(); @@ -251,7 +249,6 @@ var glo_M1_public; } glo_M1_public.f1 = f1; glo_M1_public.v1 = c1; - glo_M1_public.v2; })(glo_M1_public || (glo_M1_public = {})); var m2; (function (m2) { diff --git a/tests/baselines/reference/privacyGloImportParseErrors.js b/tests/baselines/reference/privacyGloImportParseErrors.js index d5a089a7678..f99fdaca8cc 100644 --- a/tests/baselines/reference/privacyGloImportParseErrors.js +++ b/tests/baselines/reference/privacyGloImportParseErrors.js @@ -168,7 +168,6 @@ var m1; } m1_M1_public.f1 = f1; m1_M1_public.v1 = c1; - m1_M1_public.v2; })(m1_M1_public = m1.m1_M1_public || (m1.m1_M1_public = {})); var m1_M2_private; (function (m1_M2_private) { @@ -183,7 +182,6 @@ var m1; } m1_M2_private.f1 = f1; m1_M2_private.v1 = c1; - m1_M2_private.v2; })(m1_M2_private || (m1_M2_private = {})); var m1_im1_private = m1_M1_public; m1.m1_im1_private_v1_public = m1_im1_private.c1; @@ -235,7 +233,6 @@ var glo_M1_public; } glo_M1_public.f1 = f1; glo_M1_public.v1 = c1; - glo_M1_public.v2; })(glo_M1_public || (glo_M1_public = {})); var m2; (function (m2_1) { diff --git a/tests/baselines/reference/privacyGloVar.js b/tests/baselines/reference/privacyGloVar.js index edfefc1fdb1..871407428f2 100644 --- a/tests/baselines/reference/privacyGloVar.js +++ b/tests/baselines/reference/privacyGloVar.js @@ -124,9 +124,8 @@ var m1; return C4_public; })(); var m1_v1_private; - m1.m1_v2_public; var m1_v3_private; - m1.m1_v4_public; // error + // error var m1_v11_private = new C1_public(); m1.m1_v12_public = new C1_public(); var m1_v13_private = new C2_private(); diff --git a/tests/baselines/reference/privacyImport.js b/tests/baselines/reference/privacyImport.js index fb200cac363..02ee47341c4 100644 --- a/tests/baselines/reference/privacyImport.js +++ b/tests/baselines/reference/privacyImport.js @@ -372,7 +372,6 @@ var m1; } m1_M1_public.f1 = f1; m1_M1_public.v1 = c1; - m1_M1_public.v2; })(m1_M1_public = m1.m1_M1_public || (m1.m1_M1_public = {})); var m1_M2_private; (function (m1_M2_private) { @@ -387,7 +386,6 @@ var m1; } m1_M2_private.f1 = f1; m1_M2_private.v1 = c1; - m1_M2_private.v2; })(m1_M2_private || (m1_M2_private = {})); //export declare module "m1_M3_public" { // export function f1(); @@ -457,7 +455,6 @@ var m2; } m2_M1_public.f1 = f1; m2_M1_public.v1 = c1; - m2_M1_public.v2; })(m2_M1_public = m2.m2_M1_public || (m2.m2_M1_public = {})); var m2_M2_private; (function (m2_M2_private) { @@ -472,7 +469,6 @@ var m2; } m2_M2_private.f1 = f1; m2_M2_private.v1 = c1; - m2_M2_private.v2; })(m2_M2_private || (m2_M2_private = {})); //export declare module "m2_M3_public" { // export function f1(); @@ -541,7 +537,6 @@ var glo_M1_public; } glo_M1_public.f1 = f1; glo_M1_public.v1 = c1; - glo_M1_public.v2; })(glo_M1_public = exports.glo_M1_public || (exports.glo_M1_public = {})); //export declare module "glo_M2_public" { // export function f1(); @@ -563,7 +558,6 @@ var glo_M3_private; } glo_M3_private.f1 = f1; glo_M3_private.v1 = c1; - glo_M3_private.v2; })(glo_M3_private = exports.glo_M3_private || (exports.glo_M3_private = {})); //export declare module "glo_M4_private" { // export function f1(); diff --git a/tests/baselines/reference/privacyImportParseErrors.js b/tests/baselines/reference/privacyImportParseErrors.js index 90e4a7cb097..71f20286f90 100644 --- a/tests/baselines/reference/privacyImportParseErrors.js +++ b/tests/baselines/reference/privacyImportParseErrors.js @@ -372,7 +372,6 @@ var m1; } m1_M1_public.f1 = f1; m1_M1_public.v1 = c1; - m1_M1_public.v2; })(m1_M1_public = m1.m1_M1_public || (m1.m1_M1_public = {})); var m1_M2_private; (function (m1_M2_private) { @@ -387,7 +386,6 @@ var m1; } m1_M2_private.f1 = f1; m1_M2_private.v1 = c1; - m1_M2_private.v2; })(m1_M2_private || (m1_M2_private = {})); var m1_im1_private = m1_M1_public; m1.m1_im1_private_v1_public = m1_im1_private.c1; @@ -441,7 +439,6 @@ var m2; } m2_M1_public.f1 = f1; m2_M1_public.v1 = c1; - m2_M1_public.v2; })(m2_M1_public = m2.m2_M1_public || (m2.m2_M1_public = {})); var m2_M2_private; (function (m2_M2_private) { @@ -456,7 +453,6 @@ var m2; } m2_M2_private.f1 = f1; m2_M2_private.v1 = c1; - m2_M2_private.v2; })(m2_M2_private || (m2_M2_private = {})); var m1_im1_private = m2_M1_public; m2.m1_im1_private_v1_public = m1_im1_private.c1; @@ -509,7 +505,6 @@ var glo_M1_public; } glo_M1_public.f1 = f1; glo_M1_public.v1 = c1; - glo_M1_public.v2; })(glo_M1_public = exports.glo_M1_public || (exports.glo_M1_public = {})); var glo_M3_private; (function (glo_M3_private) { @@ -524,7 +519,6 @@ var glo_M3_private; } glo_M3_private.f1 = f1; glo_M3_private.v1 = c1; - glo_M3_private.v2; })(glo_M3_private = exports.glo_M3_private || (exports.glo_M3_private = {})); var glo_im1_private = glo_M1_public; exports.glo_im1_private_v1_public = glo_im1_private.c1; diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js index 9093787a6fc..20881230156 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js @@ -229,11 +229,9 @@ var import_public; var privateUse_im_public_v_private = import_public.im_public_v_private; import_public.publicUse_im_public_v_private = import_public.im_public_v_private; var privateUse_im_public_i_private; - import_public.publicUse_im_public_i_private; var privateUse_im_public_mi_private = new import_public.im_public_mi_private.c(); import_public.publicUse_im_public_mi_private = new import_public.im_public_mi_private.c(); var privateUse_im_public_mu_private; - import_public.publicUse_im_public_mu_private; // No Privacy errors - importing public elements import_public.im_public_c_public = m_public.c_public; import_public.im_public_e_public = m_public.e_public; @@ -250,11 +248,9 @@ var import_public; var privateUse_im_public_v_public = import_public.im_public_v_public; import_public.publicUse_im_public_v_public = import_public.im_public_v_public; var privateUse_im_public_i_public; - import_public.publicUse_im_public_i_public; var privateUse_im_public_mi_public = new import_public.im_public_mi_public.c(); import_public.publicUse_im_public_mi_public = new import_public.im_public_mi_public.c(); var privateUse_im_public_mu_public; - import_public.publicUse_im_public_mu_public; })(import_public = exports.import_public || (exports.import_public = {})); var import_private; (function (import_private) { @@ -274,11 +270,9 @@ var import_private; var privateUse_im_private_v_private = import_private.im_private_v_private; import_private.publicUse_im_private_v_private = import_private.im_private_v_private; var privateUse_im_private_i_private; - import_private.publicUse_im_private_i_private; var privateUse_im_private_mi_private = new import_private.im_private_mi_private.c(); import_private.publicUse_im_private_mi_private = new import_private.im_private_mi_private.c(); var privateUse_im_private_mu_private; - import_private.publicUse_im_private_mu_private; // No privacy Error - importing public elements import_private.im_private_c_public = m_public.c_public; import_private.im_private_e_public = m_public.e_public; @@ -295,9 +289,7 @@ var import_private; var privateUse_im_private_v_public = import_private.im_private_v_public; import_private.publicUse_im_private_v_public = import_private.im_private_v_public; var privateUse_im_private_i_public; - import_private.publicUse_im_private_i_public; var privateUse_im_private_mi_public = new import_private.im_private_mi_public.c(); import_private.publicUse_im_private_mi_public = new import_private.im_private_mi_public.c(); var privateUse_im_private_mu_public; - import_private.publicUse_im_private_mu_public; })(import_private || (import_private = {})); diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js index f3b8da0de82..65565d3a5de 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js @@ -230,11 +230,9 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_private = im_private_v_private; import_public.publicUse_im_private_v_private = im_private_v_private; var privateUse_im_private_i_private; - import_public.publicUse_im_private_i_private; var privateUse_im_private_mi_private = new im_private_mi_private.c(); import_public.publicUse_im_private_mi_private = new im_private_mi_private.c(); var privateUse_im_private_mu_private; - import_public.publicUse_im_private_mu_private; // No Privacy errors - importing public elements var im_private_c_public = m_public.c_public; var im_private_e_public = m_public.e_public; @@ -251,11 +249,9 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_public = im_private_v_public; import_public.publicUse_im_private_v_public = im_private_v_public; var privateUse_im_private_i_public; - import_public.publicUse_im_private_i_public; var privateUse_im_private_mi_public = new im_private_mi_public.c(); import_public.publicUse_im_private_mi_public = new im_private_mi_public.c(); var privateUse_im_private_mu_public; - import_public.publicUse_im_private_mu_public; })(import_public = exports.import_public || (exports.import_public = {})); var import_private; (function (import_private) { @@ -275,11 +271,9 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_private = im_private_v_private; import_private.publicUse_im_private_v_private = im_private_v_private; var privateUse_im_private_i_private; - import_private.publicUse_im_private_i_private; var privateUse_im_private_mi_private = new im_private_mi_private.c(); import_private.publicUse_im_private_mi_private = new im_private_mi_private.c(); var privateUse_im_private_mu_private; - import_private.publicUse_im_private_mu_private; // No privacy Error - importing public elements var im_private_c_public = m_public.c_public; var im_private_e_public = m_public.e_public; @@ -296,10 +290,8 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_public = im_private_v_public; import_private.publicUse_im_private_v_public = im_private_v_public; var privateUse_im_private_i_public; - import_private.publicUse_im_private_i_public; var privateUse_im_private_mi_public = new im_private_mi_public.c(); import_private.publicUse_im_private_mi_public = new im_private_mi_public.c(); var privateUse_im_private_mu_public; - import_private.publicUse_im_private_mu_public; })(import_private || (import_private = {})); }); diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js index e73e398d437..ec2d039df01 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js @@ -175,11 +175,9 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_public_v_private = exports.im_public_v_private; exports.publicUse_im_public_v_private = exports.im_public_v_private; var privateUse_im_public_i_private; - exports.publicUse_im_public_i_private; var privateUse_im_public_mi_private = new exports.im_public_mi_private.c(); exports.publicUse_im_public_mi_private = new exports.im_public_mi_private.c(); var privateUse_im_public_mu_private; - exports.publicUse_im_public_mu_private; // No Privacy errors - importing public elements exports.im_public_c_public = m_public.c_public; exports.im_public_e_public = m_public.e_public; @@ -196,9 +194,7 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_public_v_public = exports.im_public_v_public; exports.publicUse_im_public_v_public = exports.im_public_v_public; var privateUse_im_public_i_public; - exports.publicUse_im_public_i_public; var privateUse_im_public_mi_public = new exports.im_public_mi_public.c(); exports.publicUse_im_public_mi_public = new exports.im_public_mi_public.c(); var privateUse_im_public_mu_public; - exports.publicUse_im_public_mu_public; }); diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js index 11cd8c260b7..a0eb39985b4 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js @@ -176,11 +176,9 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_private = im_private_v_private; exports.publicUse_im_private_v_private = im_private_v_private; var privateUse_im_private_i_private; - exports.publicUse_im_private_i_private; var privateUse_im_private_mi_private = new im_private_mi_private.c(); exports.publicUse_im_private_mi_private = new im_private_mi_private.c(); var privateUse_im_private_mu_private; - exports.publicUse_im_private_mu_private; // No Privacy errors - importing public elements var im_private_c_public = m_public.c_public; var im_private_e_public = m_public.e_public; @@ -197,9 +195,7 @@ define(["require", "exports"], function (require, exports) { var privateUse_im_private_v_public = im_private_v_public; exports.publicUse_im_private_v_public = im_private_v_public; var privateUse_im_private_i_public; - exports.publicUse_im_private_i_public; var privateUse_im_private_mi_public = new im_private_mi_public.c(); exports.publicUse_im_private_mi_public = new im_private_mi_public.c(); var privateUse_im_private_mu_public; - exports.publicUse_im_private_mu_public; }); diff --git a/tests/baselines/reference/privacyVar.js b/tests/baselines/reference/privacyVar.js index 04b4cc28dd5..2dc78dd3d2b 100644 --- a/tests/baselines/reference/privacyVar.js +++ b/tests/baselines/reference/privacyVar.js @@ -218,9 +218,8 @@ var m1; return C4_public; })(); var m1_v1_private; - m1.m1_v2_public; var m1_v3_private; - m1.m1_v4_public; // error + // error var m1_v11_private = new C1_public(); m1.m1_v12_public = new C1_public(); var m1_v13_private = new C2_private(); @@ -273,9 +272,7 @@ var m2; return m2_C4_public; })(); var m2_v1_private; - m2.m2_v2_public; var m2_v3_private; - m2.m2_v4_public; var m2_v11_private = new m2_C1_public(); m2.m2_v12_public = new m2_C1_public(); var m2_v13_private = new m2_C2_private(); @@ -326,9 +323,8 @@ var glo_C4_public = (function () { return glo_C4_public; })(); var glo_v1_private; -exports.glo_v2_public; var glo_v3_private; -exports.glo_v4_public; // error + // error var glo_v11_private = new glo_C1_public(); exports.glo_v12_public = new glo_C1_public(); var glo_v13_private = new glo_C2_private(); diff --git a/tests/baselines/reference/privacyVarDeclFile.js b/tests/baselines/reference/privacyVarDeclFile.js index 1f0a14fc7cf..d080b9d7b24 100644 --- a/tests/baselines/reference/privacyVarDeclFile.js +++ b/tests/baselines/reference/privacyVarDeclFile.js @@ -459,8 +459,7 @@ var privateClassWithWithPublicPropertyTypes = (function () { } return privateClassWithWithPublicPropertyTypes; })(); -exports.publicVarWithPrivatePropertyTypes; // Error -exports.publicVarWithPublicPropertyTypes; + // Error var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { @@ -469,7 +468,7 @@ var publicClassWithPrivateModulePropertyTypes = (function () { return publicClassWithPrivateModulePropertyTypes; })(); exports.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; -exports.publicVarWithPrivateModulePropertyTypes; // Error + // Error var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } @@ -511,8 +510,7 @@ var publicModule; } return privateClassWithWithPublicPropertyTypes; })(); - publicModule.publicVarWithPrivatePropertyTypes; // Error - publicModule.publicVarWithPublicPropertyTypes; + // Error var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { @@ -521,7 +519,7 @@ var publicModule; return publicClassWithPrivateModulePropertyTypes; })(); publicModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; - publicModule.publicVarWithPrivateModulePropertyTypes; // Error + // Error var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } @@ -564,8 +562,6 @@ var privateModule; } return privateClassWithWithPublicPropertyTypes; })(); - privateModule.publicVarWithPrivatePropertyTypes; - privateModule.publicVarWithPublicPropertyTypes; var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { @@ -574,7 +570,6 @@ var privateModule; return publicClassWithPrivateModulePropertyTypes; })(); privateModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; - privateModule.publicVarWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } @@ -642,8 +637,6 @@ var publicModuleInGlobal; } return privateClassWithWithPublicPropertyTypes; })(); - privateModule.publicVarWithPrivatePropertyTypes; - privateModule.publicVarWithPublicPropertyTypes; var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { @@ -652,7 +645,6 @@ var publicModuleInGlobal; return publicClassWithPrivateModulePropertyTypes; })(); privateModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; - privateModule.publicVarWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } @@ -682,8 +674,7 @@ var publicModuleInGlobal; } return privateClassWithWithPublicPropertyTypes; })(); - publicModuleInGlobal.publicVarWithPrivatePropertyTypes; // Error - publicModuleInGlobal.publicVarWithPublicPropertyTypes; + // Error var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { @@ -692,7 +683,7 @@ var publicModuleInGlobal; return publicClassWithPrivateModulePropertyTypes; })(); publicModuleInGlobal.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; - publicModuleInGlobal.publicVarWithPrivateModulePropertyTypes; // Error + // Error var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } diff --git a/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js b/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js +++ b/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js b/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js +++ b/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js b/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js +++ b/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js b/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js +++ b/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/useModule.js b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/useModule.js index 640e4412366..fd6c8ad47f4 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/useModule.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/useModule.js @@ -4,6 +4,5 @@ define(["require", "exports", "private_m4"], function (require, exports, private var x3 = private_m4.x; var d3 = private_m4.d; var f3 = private_m4.foo(); - usePrivate_m4_m1.numberVar; })(usePrivate_m4_m1 = exports.usePrivate_m4_m1 || (exports.usePrivate_m4_m1 = {})); }); diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js b/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/node/useModule.js b/tests/baselines/reference/project/declarationsImportedInPrivate/node/useModule.js index 77f1d44c2a9..8fe4cca6e92 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/node/useModule.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/node/useModule.js @@ -5,5 +5,4 @@ var usePrivate_m4_m1; var x3 = private_m4.x; var d3 = private_m4.d; var f3 = private_m4.foo(); - usePrivate_m4_m1.numberVar; })(usePrivate_m4_m1 = exports.usePrivate_m4_m1 || (exports.usePrivate_m4_m1 = {})); diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js b/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js index dcde28794d1..c89712ecc7f 100644 --- a/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js @@ -6,7 +6,6 @@ define(["require", "exports"], function (require, exports) { })(); exports.d = d; ; - exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js b/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js index 69fc2903493..2c8c4f07149 100644 --- a/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js @@ -5,7 +5,6 @@ var d = (function () { })(); exports.d = d; ; -exports.x; function foo() { return new d(); } diff --git a/tests/baselines/reference/propertyNamesWithStringLiteral.js b/tests/baselines/reference/propertyNamesWithStringLiteral.js index 9c1bc04a95e..1474847723f 100644 --- a/tests/baselines/reference/propertyNamesWithStringLiteral.js +++ b/tests/baselines/reference/propertyNamesWithStringLiteral.js @@ -24,7 +24,6 @@ var _Color = (function () { })(); var Color; (function (Color) { - Color.namedColors; })(Color || (Color = {})); var a = Color.namedColors["azure"]; var a = Color.namedColors.blue; // Should not error diff --git a/tests/baselines/reference/protoAsIndexInIndexExpression.js b/tests/baselines/reference/protoAsIndexInIndexExpression.js index 489e624cdc6..a003c70468e 100644 --- a/tests/baselines/reference/protoAsIndexInIndexExpression.js +++ b/tests/baselines/reference/protoAsIndexInIndexExpression.js @@ -20,7 +20,6 @@ class C { } //// [protoAsIndexInIndexExpression_0.js] -exports.x; //// [protoAsIndexInIndexExpression_1.js] /// var EntityPrototype = undefined; diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js index 59f4f8c8a94..d886fb39eaf 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js @@ -27,5 +27,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js index 48f35df3097..5b2992b02fd 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js @@ -31,5 +31,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType2_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js index c7456cda942..acf9075f6db 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js @@ -35,5 +35,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType3_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js index 1a9e00675a7..8f6b76aa059 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js @@ -27,5 +27,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType4_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js index dd94524bfa2..1d6e7f729a0 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js @@ -34,5 +34,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType5_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js index 792f09b5579..c8fd463c2fe 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js @@ -41,5 +41,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType6_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js index f5568b5e39d..aa82e463ce7 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js @@ -46,5 +46,5 @@ define(["require", "exports"], function (require, exports) { }); //// [recursiveExportAssignmentAndFindAliasedType7_moduleA.js] define(["require", "exports"], function (require, exports) { - exports.b; // This should result in type ClassB + // This should result in type ClassB }); diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index 1d72bbbf966..42a1e684015 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -43,7 +43,6 @@ module M3 { var s; var M1; (function (M1) { - M1.s; var n = M1.s; var n; })(M1 || (M1 = {})); diff --git a/tests/baselines/reference/separateCompilationSpecifiedModule.js b/tests/baselines/reference/separateCompilationSpecifiedModule.js index 5f3c7ceb39c..02616b75874 100644 --- a/tests/baselines/reference/separateCompilationSpecifiedModule.js +++ b/tests/baselines/reference/separateCompilationSpecifiedModule.js @@ -2,4 +2,3 @@ export var x; //// [separateCompilationSpecifiedModule.js] -exports.x; diff --git a/tests/baselines/reference/separateCompilationUnspecifiedModule.js b/tests/baselines/reference/separateCompilationUnspecifiedModule.js index 0f2e5c71a87..1525207a93d 100644 --- a/tests/baselines/reference/separateCompilationUnspecifiedModule.js +++ b/tests/baselines/reference/separateCompilationUnspecifiedModule.js @@ -2,4 +2,3 @@ export var x; //// [separateCompilationUnspecifiedModule.js] -exports.x; diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js new file mode 100644 index 00000000000..4e894fb99ad --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js @@ -0,0 +1,17 @@ +//// [sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts] +module Q { + function P() { + // Test this + var a = 1; + } +} + +//// [sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js] +var Q; +(function (Q) { + function P() { + // Test this + var a = 1; + } +})(Q || (Q = {})); +//# sourceMappingURL=sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map new file mode 100644 index 00000000000..217105d88d2 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map @@ -0,0 +1,2 @@ +//// [sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map] +{"version":3,"file":"sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts"],"names":["Q","Q.P"],"mappings":"AAAA,IAAO,CAAC,CAKP;AALD,WAAO,CAAC,EAAC,CAAC;IACNA;QAEIC,AADAA,YAAYA;YACRA,CAACA,GAAGA,CAACA,CAACA;IACdA,CAACA;AACLD,CAACA,EALM,CAAC,KAAD,CAAC,QAKP"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt new file mode 100644 index 00000000000..669481b46a2 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt @@ -0,0 +1,127 @@ +=================================================================== +JsFile: sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js +mapUrl: sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map +sourceRoot: +sources: sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js +sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts +------------------------------------------------------------------- +>>>var Q; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > +2 >module +3 > Q +4 > { + > function P() { + > // Test this + > var a = 1; + > } + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 9) + SourceIndex(0) +4 >Emitted(1, 7) Source(6, 2) + SourceIndex(0) +--- +>>>(function (Q) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^-> +1-> +2 >module +3 > Q +4 > +5 > { +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) +3 >Emitted(2, 13) Source(1, 9) + SourceIndex(0) +4 >Emitted(2, 15) Source(1, 10) + SourceIndex(0) +5 >Emitted(2, 16) Source(1, 11) + SourceIndex(0) +--- +>>> function P() { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) name (Q) +--- +>>> // Test this +1->^^^^^^^^ +2 > +3 > ^^^^^^^^^^^^ +1->function P() { + > // Test this + > +2 > +3 > // Test this +1->Emitted(4, 9) Source(4, 9) + SourceIndex(0) name (Q.P) +2 >Emitted(4, 9) Source(3, 9) + SourceIndex(0) name (Q.P) +3 >Emitted(4, 21) Source(3, 21) + SourceIndex(0) name (Q.P) +--- +>>> var a = 1; +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^ +5 > ^ +1 > + > var +2 > a +3 > = +4 > 1 +5 > ; +1 >Emitted(5, 13) Source(4, 13) + SourceIndex(0) name (Q.P) +2 >Emitted(5, 14) Source(4, 14) + SourceIndex(0) name (Q.P) +3 >Emitted(5, 17) Source(4, 17) + SourceIndex(0) name (Q.P) +4 >Emitted(5, 18) Source(4, 18) + SourceIndex(0) name (Q.P) +5 >Emitted(5, 19) Source(4, 19) + SourceIndex(0) name (Q.P) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(5, 5) + SourceIndex(0) name (Q.P) +2 >Emitted(6, 6) Source(5, 6) + SourceIndex(0) name (Q.P) +--- +>>>})(Q || (Q = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > Q +5 > +6 > Q +7 > { + > function P() { + > // Test this + > var a = 1; + > } + > } +1->Emitted(7, 1) Source(6, 1) + SourceIndex(0) name (Q) +2 >Emitted(7, 2) Source(6, 2) + SourceIndex(0) name (Q) +3 >Emitted(7, 4) Source(1, 8) + SourceIndex(0) +4 >Emitted(7, 5) Source(1, 9) + SourceIndex(0) +5 >Emitted(7, 10) Source(1, 8) + SourceIndex(0) +6 >Emitted(7, 11) Source(1, 9) + SourceIndex(0) +7 >Emitted(7, 19) Source(6, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.symbols b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.symbols new file mode 100644 index 00000000000..285a6a0ad92 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.symbols @@ -0,0 +1,12 @@ +=== tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts === +module Q { +>Q : Symbol(Q, Decl(sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts, 0, 0)) + + function P() { +>P : Symbol(P, Decl(sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts, 0, 10)) + + // Test this + var a = 1; +>a : Symbol(a, Decl(sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts, 3, 11)) + } +} diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.types b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.types new file mode 100644 index 00000000000..db4f2c320b4 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.types @@ -0,0 +1,13 @@ +=== tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts === +module Q { +>Q : typeof Q + + function P() { +>P : () => void + + // Test this + var a = 1; +>a : number +>1 : number + } +} diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js new file mode 100644 index 00000000000..885ece077d7 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js @@ -0,0 +1,12 @@ +//// [sourceMapForFunctionWithCommentPrecedingStatement01.ts] +function P() { + // Test this + var a = 1; +} + +//// [sourceMapForFunctionWithCommentPrecedingStatement01.js] +function P() { + // Test this + var a = 1; +} +//# sourceMappingURL=sourceMapForFunctionWithCommentPrecedingStatement01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map new file mode 100644 index 00000000000..7a84caf3879 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map @@ -0,0 +1,2 @@ +//// [sourceMapForFunctionWithCommentPrecedingStatement01.js.map] +{"version":3,"file":"sourceMapForFunctionWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionWithCommentPrecedingStatement01.ts"],"names":["P"],"mappings":"AAAA;IAEIA,AADAA,YAAYA;QACRA,CAACA,GAAGA,CAACA,CAACA;AACdA,CAACA"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt new file mode 100644 index 00000000000..cbeed192d31 --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt @@ -0,0 +1,58 @@ +=================================================================== +JsFile: sourceMapForFunctionWithCommentPrecedingStatement01.js +mapUrl: sourceMapForFunctionWithCommentPrecedingStatement01.js.map +sourceRoot: +sources: sourceMapForFunctionWithCommentPrecedingStatement01.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.js +sourceFile:sourceMapForFunctionWithCommentPrecedingStatement01.ts +------------------------------------------------------------------- +>>>function P() { +1 > +2 >^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +--- +>>> // Test this +1->^^^^ +2 > +3 > ^^^^^^^^^^^^ +1->function P() { + > // Test this + > +2 > +3 > // Test this +1->Emitted(2, 5) Source(3, 5) + SourceIndex(0) name (P) +2 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (P) +3 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) name (P) +--- +>>> var a = 1; +1 >^^^^^^^^ +2 > ^ +3 > ^^^ +4 > ^ +5 > ^ +1 > + > var +2 > a +3 > = +4 > 1 +5 > ; +1 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (P) +2 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) name (P) +3 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) name (P) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) name (P) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) name (P) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) name (P) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) name (P) +--- +>>>//# sourceMappingURL=sourceMapForFunctionWithCommentPrecedingStatement01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.symbols b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.symbols new file mode 100644 index 00000000000..b9f50a929af --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.symbols @@ -0,0 +1,8 @@ +=== tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.ts === +function P() { +>P : Symbol(P, Decl(sourceMapForFunctionWithCommentPrecedingStatement01.ts, 0, 0)) + + // Test this + var a = 1; +>a : Symbol(a, Decl(sourceMapForFunctionWithCommentPrecedingStatement01.ts, 2, 7)) +} diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.types b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.types new file mode 100644 index 00000000000..5e3d01a6b5b --- /dev/null +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.types @@ -0,0 +1,9 @@ +=== tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.ts === +function P() { +>P : () => void + + // Test this + var a = 1; +>a : number +>1 : number +} diff --git a/tests/baselines/reference/structuralTypeInDeclareFileForModule.js b/tests/baselines/reference/structuralTypeInDeclareFileForModule.js index 8dfb775662b..b7d5615d3ff 100644 --- a/tests/baselines/reference/structuralTypeInDeclareFileForModule.js +++ b/tests/baselines/reference/structuralTypeInDeclareFileForModule.js @@ -6,7 +6,6 @@ var m = M; //// [structuralTypeInDeclareFileForModule.js] var M; (function (M) { - M.x; })(M || (M = {})); var m = M; diff --git a/tests/baselines/reference/symbolProperty49.js b/tests/baselines/reference/symbolProperty49.js index 5ed756b0863..616683ed404 100644 --- a/tests/baselines/reference/symbolProperty49.js +++ b/tests/baselines/reference/symbolProperty49.js @@ -10,7 +10,6 @@ module M { //// [symbolProperty49.js] var M; (function (M) { - M.Symbol; class C { [M.Symbol.iterator]() { } } diff --git a/tests/baselines/reference/systemModule11.js b/tests/baselines/reference/systemModule11.js index 91c05e8263a..55011214042 100644 --- a/tests/baselines/reference/systemModule11.js +++ b/tests/baselines/reference/systemModule11.js @@ -61,7 +61,6 @@ System.register(['bar'], function(exports_1) { exportStar_1(_bar_1); }], execute: function() { - exports_1("x", x); } } }); @@ -128,7 +127,6 @@ System.register(['a'], function(exports_1) { exports_1("s2", _a_1["s1"]); }], execute: function() { - exports_1("x", x); exports_1("z", z); exports_1("z2", z1); } diff --git a/tests/baselines/reference/systemModule4.js b/tests/baselines/reference/systemModule4.js index 0b045b620ff..2b06d04e06f 100644 --- a/tests/baselines/reference/systemModule4.js +++ b/tests/baselines/reference/systemModule4.js @@ -10,7 +10,6 @@ System.register([], function(exports_1) { setters:[], execute: function() { exports_1("x", x = 1); - exports_1("y", y); } } }); diff --git a/tests/baselines/reference/systemModule8.js b/tests/baselines/reference/systemModule8.js index 578814d0ab2..6196005dc62 100644 --- a/tests/baselines/reference/systemModule8.js +++ b/tests/baselines/reference/systemModule8.js @@ -39,7 +39,6 @@ System.register([], function(exports_1) { return { setters:[], execute: function() { - exports_1("x", x); exports_1("x", x = 1); (exports_1("x", ++x) - 1); (exports_1("x", --x) + 1); diff --git a/tests/baselines/reference/topLevelFileModule.js b/tests/baselines/reference/topLevelFileModule.js index 4f8bc94dcf4..5d655f78397 100644 --- a/tests/baselines/reference/topLevelFileModule.js +++ b/tests/baselines/reference/topLevelFileModule.js @@ -13,7 +13,6 @@ var z = foo.x + fum.y; //// [foo_0.js] -exports.x; //// [foo_1.js] var foo = require("vs/foo_0"); var fum = require("vs/fum"); diff --git a/tests/baselines/reference/typeGuardsInExternalModule.js b/tests/baselines/reference/typeGuardsInExternalModule.js index 29950ece95a..88423e65ca1 100644 --- a/tests/baselines/reference/typeGuardsInExternalModule.js +++ b/tests/baselines/reference/typeGuardsInExternalModule.js @@ -37,7 +37,6 @@ else { } // exported variable in external module var strOrNum; -exports.var2; if (typeof exports.var2 === "string") { // export makes the var property and not variable strOrNum = exports.var2; // string | number diff --git a/tests/baselines/reference/typeGuardsInModule.js b/tests/baselines/reference/typeGuardsInModule.js index c72b9e58aa2..af87fae17ca 100644 --- a/tests/baselines/reference/typeGuardsInModule.js +++ b/tests/baselines/reference/typeGuardsInModule.js @@ -108,7 +108,6 @@ var m1; num = var2; // number } // exported variable in the module - m1.var3; if (typeof m1.var3 === "string") { strOrNum = m1.var3; // string | number } @@ -120,7 +119,6 @@ var m1; var m2; (function (m2) { var var2; - m2.var3; var m3; (function (m3) { // global vars in function declaration @@ -138,7 +136,6 @@ var m2; num = var4; // number } // exported variable in the module - m3.var5; if (typeof m3.var5 === "string") { strOrNum = m3.var5; // string | number } @@ -163,7 +160,6 @@ var m3; num = var2; // number } // exported variable in the module - m4.var3; if (typeof m4.var3 === "string") { strOrNum = m4.var3; // string | number } diff --git a/tests/baselines/reference/typeofANonExportedType.js b/tests/baselines/reference/typeofANonExportedType.js index bb41ddfab7a..5b24d9bc102 100644 --- a/tests/baselines/reference/typeofANonExportedType.js +++ b/tests/baselines/reference/typeofANonExportedType.js @@ -53,23 +53,14 @@ export var r13: typeof foo; //// [typeofANonExportedType.js] var x = 1; -exports.r1; var y = { foo: '' }; -exports.r2; var C = (function () { function C() { } return C; })(); -exports.c; var c2; -exports.r3; -exports.r4; -exports.r4b; -exports.i; var i2; -exports.r5; -exports.r5; var M; (function (M) { M.foo = ''; @@ -80,17 +71,10 @@ var M; })(); M.C = C; })(M || (M = {})); -exports.r6; -exports.r7; -exports.r8; -exports.r9; var E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); -exports.r10; -exports.r11; -exports.r12; function foo() { } var foo; (function (foo) { @@ -102,4 +86,3 @@ var foo; })(); foo.C = C; })(foo || (foo = {})); -exports.r13; diff --git a/tests/baselines/reference/typeofAnExportedType.js b/tests/baselines/reference/typeofAnExportedType.js index af6c405a3cf..54de4f7566b 100644 --- a/tests/baselines/reference/typeofAnExportedType.js +++ b/tests/baselines/reference/typeofAnExportedType.js @@ -53,24 +53,15 @@ export var r13: typeof foo; //// [typeofAnExportedType.js] exports.x = 1; -exports.r1; exports.y = { foo: '' }; -exports.r2; var C = (function () { function C() { } return C; })(); exports.C = C; -exports.c; var c2; -exports.r3; -exports.r4; -exports.r4b; -exports.i; var i2; -exports.r5; -exports.r5; var M; (function (M) { M.foo = ''; @@ -81,18 +72,11 @@ var M; })(); M.C = C; })(M = exports.M || (exports.M = {})); -exports.r6; -exports.r7; exports.Z = M; -exports.r8; -exports.r9; (function (E) { E[E["A"] = 0] = "A"; })(exports.E || (exports.E = {})); var E = exports.E; -exports.r10; -exports.r11; -exports.r12; function foo() { } exports.foo = foo; var foo; @@ -105,4 +89,3 @@ var foo; })(); foo.C = C; })(foo = exports.foo || (exports.foo = {})); -exports.r13; diff --git a/tests/baselines/reference/typeofOperatorWithAnyOtherType.js b/tests/baselines/reference/typeofOperatorWithAnyOtherType.js index a497519f249..1c66c5f4d1e 100644 --- a/tests/baselines/reference/typeofOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/typeofOperatorWithAnyOtherType.js @@ -96,7 +96,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/typeofOperatorWithBooleanType.js b/tests/baselines/reference/typeofOperatorWithBooleanType.js index 82af3eac26f..c0538b78b14 100644 --- a/tests/baselines/reference/typeofOperatorWithBooleanType.js +++ b/tests/baselines/reference/typeofOperatorWithBooleanType.js @@ -62,7 +62,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/typeofOperatorWithNumberType.js b/tests/baselines/reference/typeofOperatorWithNumberType.js index 14b45ab518f..b980b820ce1 100644 --- a/tests/baselines/reference/typeofOperatorWithNumberType.js +++ b/tests/baselines/reference/typeofOperatorWithNumberType.js @@ -70,7 +70,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/typeofOperatorWithStringType.js b/tests/baselines/reference/typeofOperatorWithStringType.js index 381205ff8c1..9b5cbb20b36 100644 --- a/tests/baselines/reference/typeofOperatorWithStringType.js +++ b/tests/baselines/reference/typeofOperatorWithStringType.js @@ -70,7 +70,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.js b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.js new file mode 100644 index 00000000000..9442d733aa4 --- /dev/null +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.js @@ -0,0 +1,43 @@ +//// [unionTypeWithRecursiveSubtypeReduction.ts] +class Module { + public members: Class[]; +} + +class Namespace { + public members: (Class | Property)[]; +} + +class Class { + public parent: Namespace; +} + +class Property { + public parent: Module | Class; +} + +var t: Class | Property; +t.parent; + +//// [unionTypeWithRecursiveSubtypeReduction.js] +var Module = (function () { + function Module() { + } + return Module; +})(); +var Namespace = (function () { + function Namespace() { + } + return Namespace; +})(); +var Class = (function () { + function Class() { + } + return Class; +})(); +var Property = (function () { + function Property() { + } + return Property; +})(); +var t; +t.parent; diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.symbols b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.symbols new file mode 100644 index 00000000000..93351990f6c --- /dev/null +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.symbols @@ -0,0 +1,45 @@ +=== tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts === +class Module { +>Module : Symbol(Module, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 0)) + + public members: Class[]; +>members : Symbol(members, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 14)) +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) +} + +class Namespace { +>Namespace : Symbol(Namespace, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 2, 1)) + + public members: (Class | Property)[]; +>members : Symbol(members, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 4, 17)) +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) +} + +class Class { +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) + + public parent: Namespace; +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13)) +>Namespace : Symbol(Namespace, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 2, 1)) +} + +class Property { +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) + + public parent: Module | Class; +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) +>Module : Symbol(Module, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 0)) +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) +} + +var t: Class | Property; +>t : Symbol(t, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 16, 3)) +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) + +t.parent; +>t.parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13), Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) +>t : Symbol(t, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 16, 3)) +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13), Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) + diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.types b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.types new file mode 100644 index 00000000000..cf8f41d70cc --- /dev/null +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction.types @@ -0,0 +1,45 @@ +=== tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts === +class Module { +>Module : Module + + public members: Class[]; +>members : Class[] +>Class : Class +} + +class Namespace { +>Namespace : Namespace + + public members: (Class | Property)[]; +>members : (Class | Property)[] +>Class : Class +>Property : Property +} + +class Class { +>Class : Class + + public parent: Namespace; +>parent : Namespace +>Namespace : Namespace +} + +class Property { +>Property : Property + + public parent: Module | Class; +>parent : Module | Class +>Module : Module +>Class : Class +} + +var t: Class | Property; +>t : Class | Property +>Class : Class +>Property : Property + +t.parent; +>t.parent : Class | Namespace +>t : Class | Property +>parent : Class | Namespace + diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.errors.txt b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.errors.txt new file mode 100644 index 00000000000..0f15bd1ed3a --- /dev/null +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.errors.txt @@ -0,0 +1,45 @@ +tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts(19,1): error TS2322: Type 'Property' is not assignable to type 'Class'. + Types of property 'parent' are incompatible. + Type 'Module | Class' is not assignable to type 'Namespace'. + Type 'Class' is not assignable to type 'Namespace'. + Property 'members' is missing in type 'Class'. +tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts(20,1): error TS2322: Type 'Class' is not assignable to type 'Property'. + Types of property 'parent' are incompatible. + Type 'Namespace' is not assignable to type 'Module | Class'. + Type 'Namespace' is not assignable to type 'Class'. + Property 'parent' is missing in type 'Namespace'. + + +==== tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts (2 errors) ==== + class Module { + public members: Class[]; + } + + class Namespace { + public members: (Class | Property)[]; + } + + class Class { + public parent: Namespace; + } + + class Property { + public parent: Module | Class; + } + + var c: Class; + var p: Property; + c = p; + ~ +!!! error TS2322: Type 'Property' is not assignable to type 'Class'. +!!! error TS2322: Types of property 'parent' are incompatible. +!!! error TS2322: Type 'Module | Class' is not assignable to type 'Namespace'. +!!! error TS2322: Type 'Class' is not assignable to type 'Namespace'. +!!! error TS2322: Property 'members' is missing in type 'Class'. + p = c; + ~ +!!! error TS2322: Type 'Class' is not assignable to type 'Property'. +!!! error TS2322: Types of property 'parent' are incompatible. +!!! error TS2322: Type 'Namespace' is not assignable to type 'Module | Class'. +!!! error TS2322: Type 'Namespace' is not assignable to type 'Class'. +!!! error TS2322: Property 'parent' is missing in type 'Namespace'. \ No newline at end of file diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js new file mode 100644 index 00000000000..6b3c61dbeed --- /dev/null +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js @@ -0,0 +1,47 @@ +//// [unionTypeWithRecursiveSubtypeReduction2.ts] +class Module { + public members: Class[]; +} + +class Namespace { + public members: (Class | Property)[]; +} + +class Class { + public parent: Namespace; +} + +class Property { + public parent: Module | Class; +} + +var c: Class; +var p: Property; +c = p; +p = c; + +//// [unionTypeWithRecursiveSubtypeReduction2.js] +var Module = (function () { + function Module() { + } + return Module; +})(); +var Namespace = (function () { + function Namespace() { + } + return Namespace; +})(); +var Class = (function () { + function Class() { + } + return Class; +})(); +var Property = (function () { + function Property() { + } + return Property; +})(); +var c; +var p; +c = p; +p = c; diff --git a/tests/baselines/reference/varBlock.js b/tests/baselines/reference/varBlock.js index 25ee5001d70..a3309338ecb 100644 --- a/tests/baselines/reference/varBlock.js +++ b/tests/baselines/reference/varBlock.js @@ -42,7 +42,7 @@ declare var c = 10; //// [varBlock.js] var m2; (function (m2) { - m2.a, m2.b2 = 10, m2.b; + m2.b2 = 10; })(m2 || (m2 = {})); var m3; (function (m3) { diff --git a/tests/baselines/reference/vardecl.js b/tests/baselines/reference/vardecl.js index 3ff8f4e8ab3..9b19e1000a9 100644 --- a/tests/baselines/reference/vardecl.js +++ b/tests/baselines/reference/vardecl.js @@ -130,7 +130,7 @@ var n4; var d4; var m2; (function (m2) { - m2.a, m2.b2 = 10, m2.b; + m2.b2 = 10; var m1; var a2, b22 = 10, b222; var m3; @@ -149,8 +149,6 @@ var m2; m2.C2 = C2; var m; var b23; - m2.mE; - m2.b2E; })(m2 || (m2 = {})); var a22, b22 = 10, c22 = 30; var nn; diff --git a/tests/baselines/reference/voidOperatorWithAnyOtherType.js b/tests/baselines/reference/voidOperatorWithAnyOtherType.js index e06aae7fe46..fbe85326d3a 100644 --- a/tests/baselines/reference/voidOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/voidOperatorWithAnyOtherType.js @@ -82,7 +82,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // any type var diff --git a/tests/baselines/reference/voidOperatorWithBooleanType.js b/tests/baselines/reference/voidOperatorWithBooleanType.js index 69c609c1280..25099108b9b 100644 --- a/tests/baselines/reference/voidOperatorWithBooleanType.js +++ b/tests/baselines/reference/voidOperatorWithBooleanType.js @@ -50,7 +50,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // boolean type var diff --git a/tests/baselines/reference/voidOperatorWithNumberType.js b/tests/baselines/reference/voidOperatorWithNumberType.js index 2426690489d..9a0a31d4fe5 100644 --- a/tests/baselines/reference/voidOperatorWithNumberType.js +++ b/tests/baselines/reference/voidOperatorWithNumberType.js @@ -58,7 +58,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // number type var diff --git a/tests/baselines/reference/voidOperatorWithStringType.js b/tests/baselines/reference/voidOperatorWithStringType.js index 9f30d1fcb0c..5949c93acd4 100644 --- a/tests/baselines/reference/voidOperatorWithStringType.js +++ b/tests/baselines/reference/voidOperatorWithStringType.js @@ -57,7 +57,6 @@ var A = (function () { })(); var M; (function (M) { - M.n; })(M || (M = {})); var objA = new A(); // string type var diff --git a/tests/baselines/reference/withExportDecl.js b/tests/baselines/reference/withExportDecl.js index ccd13123721..8d8b8b817ea 100644 --- a/tests/baselines/reference/withExportDecl.js +++ b/tests/baselines/reference/withExportDecl.js @@ -61,7 +61,6 @@ export var eVar3 = 10, eVar4, eVar5; //// [withExportDecl.js] define(["require", "exports"], function (require, exports) { var simpleVar; - exports.exportedSimpleVar; var anotherVar; var varWithSimpleType; var varWithArrayType; @@ -70,7 +69,6 @@ define(["require", "exports"], function (require, exports) { var withComplicatedValue = { x: 30, y: 70, desc: "position" }; exports.exportedWithComplicatedValue = { x: 30, y: 70, desc: "position" }; var arrayVar = ['a', 'b']; - exports.exportedArrayVar; exports.exportedArrayVar.push({ x: 30, y: 'hello world' }); function simpleFunction() { return { @@ -97,9 +95,9 @@ define(["require", "exports"], function (require, exports) { } m3.foo = foo; })(m3 = exports.m3 || (exports.m3 = {})); - exports.eVar1, exports.eVar2 = 10; + exports.eVar2 = 10; var eVar22; - exports.eVar3 = 10, exports.eVar4, exports.eVar5; + exports.eVar3 = 10; }); diff --git a/tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts b/tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts new file mode 100644 index 00000000000..d12e894b0a9 --- /dev/null +++ b/tests/cases/compiler/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts @@ -0,0 +1,7 @@ +//@sourceMap: true +module Q { + function P() { + // Test this + var a = 1; + } +} \ No newline at end of file diff --git a/tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.ts b/tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.ts new file mode 100644 index 00000000000..e883b202ca1 --- /dev/null +++ b/tests/cases/compiler/sourceMapForFunctionWithCommentPrecedingStatement01.ts @@ -0,0 +1,5 @@ +//@sourceMap: true +function P() { + // Test this + var a = 1; +} \ No newline at end of file diff --git a/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts b/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts new file mode 100644 index 00000000000..651adf44895 --- /dev/null +++ b/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts @@ -0,0 +1,18 @@ +class Module { + public members: Class[]; +} + +class Namespace { + public members: (Class | Property)[]; +} + +class Class { + public parent: Namespace; +} + +class Property { + public parent: Module | Class; +} + +var t: Class | Property; +t.parent; \ No newline at end of file diff --git a/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts b/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts new file mode 100644 index 00000000000..31a8bbe0b67 --- /dev/null +++ b/tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction2.ts @@ -0,0 +1,20 @@ +class Module { + public members: Class[]; +} + +class Namespace { + public members: (Class | Property)[]; +} + +class Class { + public parent: Namespace; +} + +class Property { + public parent: Module | Class; +} + +var c: Class; +var p: Property; +c = p; +p = c; \ No newline at end of file diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts new file mode 100644 index 00000000000..f6ad233d4f6 --- /dev/null +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts @@ -0,0 +1,34 @@ +//@module: amd + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts new file mode 100644 index 00000000000..dd43474972c --- /dev/null +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts @@ -0,0 +1,34 @@ +//@module: commonjs + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts new file mode 100644 index 00000000000..86319311f96 --- /dev/null +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts @@ -0,0 +1,34 @@ +//@target: ES6 + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts new file mode 100644 index 00000000000..2105dd61b1c --- /dev/null +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts @@ -0,0 +1,34 @@ +//@module: system + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; diff --git a/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts new file mode 100644 index 00000000000..b4d767a223c --- /dev/null +++ b/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts @@ -0,0 +1,34 @@ +//@module: umd + +var; +let; +const; + +export var a; +export let b; +export var c: string; +export let d: number; +class A {} +export var e: A; +export let f: A; + +namespace B { + export let a = 1, b, c = 2; + export let x, y, z; +} + +module C { + export var a = 1, b, c = 2; + export var x, y, z; +} + +// Shouldn't be filtered +export var a1 = 1; +export let b1 = 1; +export var c1: string = 'a'; +export let d1: number = 1; +class D {} +export var e1 = new D; +export let f1 = new D; +export var g1: D = new D; +export let h1: D = new D; diff --git a/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts b/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts new file mode 100644 index 00000000000..cd08ae00041 --- /dev/null +++ b/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts @@ -0,0 +1,35 @@ + +module Inner { + var; + let; + const; + + export var a; + export let b; + export var c: string; + export let d: number; + class A {} + export var e: A; + export let f: A; + + namespace B { + export let a = 1, b, c = 2; + export let x, y, z; + } + + module C { + export var a = 1, b, c = 2; + export var x, y, z; + } + + // Shouldn't be filtered + export var a1 = 1; + export let b1 = 1; + export var c1: string = 'a'; + export let d1: number = 1; + class D {} + export var e1 = new D; + export let f1 = new D; + export var g1: D = new D; + export let h1: D = new D; +} \ No newline at end of file diff --git a/tests/cases/fourslash/completionListAtInvalidLocations.ts b/tests/cases/fourslash/completionListAtInvalidLocations.ts index 96368280371..6e4b4056a7d 100644 --- a/tests/cases/fourslash/completionListAtInvalidLocations.ts +++ b/tests/cases/fourslash/completionListAtInvalidLocations.ts @@ -18,7 +18,8 @@ /////* /*inComment5*/ ////var v11 = ''; //// // /*inComment6*/ -//// +////var v12 = ''; +////type htm/*inTypeAlias*/ /// ////// /*inComment7*/ ////foo; diff --git a/tests/cases/fourslash/completionListNewIdentifierBindingElement.ts b/tests/cases/fourslash/completionListNewIdentifierBindingElement.ts new file mode 100644 index 00000000000..753d6c7d4d2 --- /dev/null +++ b/tests/cases/fourslash/completionListNewIdentifierBindingElement.ts @@ -0,0 +1,6 @@ +/// + +////var { x:html/*1*/ + +goTo.marker("1"); +verify.completionListIsEmpty(); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts b/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts new file mode 100644 index 00000000000..8a9a5bfb9ed --- /dev/null +++ b/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts @@ -0,0 +1,9 @@ +/// + +////function F(pref: (a/*1*/ + +test.markers().forEach((m) => { + goTo.position(m.position, m.fileName); + verify.not.completionListIsEmpty(); + verify.completionListAllowsNewIdentifier(); +}); diff --git a/tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts b/tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts new file mode 100644 index 00000000000..534011b7ee1 --- /dev/null +++ b/tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts @@ -0,0 +1,11 @@ +/// + +////var x : (s/*1*/ + +////var y : (s:string, list/*2*/ + +test.markers().forEach((m) => { + goTo.position(m.position, m.fileName); + verify.not.completionListIsEmpty(); + verify.completionListAllowsNewIdentifier(); +}); \ No newline at end of file